diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-19 18:36:33 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-19 18:36:33 +0100 |
commit | 1fe2cca439d7b1481c5744c3f4b8022e5e59fa1f (patch) | |
tree | 209fd510dee40a2f700d23163aabbfaa7c846e57 /Libraries/LibHTML/Layout/LayoutText.h | |
parent | dce76468821c5bfce1e99ee1d2889b6b79118a9f (diff) | |
download | serenity-1fe2cca439d7b1481c5744c3f4b8022e5e59fa1f.zip |
LibHTML: Use LayoutText::text_for_rendering() in layout tree dumps
This way the fragment offsets make a lot more sense, since they assume
whitespace has already been collapsed.
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutText.h')
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutText.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutText.h b/Libraries/LibHTML/Layout/LayoutText.h index bae226c11a..312824682e 100644 --- a/Libraries/LibHTML/Layout/LayoutText.h +++ b/Libraries/LibHTML/Layout/LayoutText.h @@ -13,6 +13,7 @@ public: const Text& node() const { return static_cast<const Text&>(*LayoutNode::node()); } const String& text_for_style(const StyleProperties&) const; + const String& text_for_rendering() const { return m_text_for_rendering; } virtual const char* class_name() const override { return "LayoutText"; } virtual bool is_text() const final { return true; } |