mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
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.
This commit is contained in:
parent
dce7646882
commit
1fe2cca439
Notes:
sideshowbarker
2024-07-19 11:08:23 +09:00
Author: https://github.com/awesomekling
Commit: 1fe2cca439
2 changed files with 3 additions and 2 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue