mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibHTML: Collapse all-whitespace LayoutText into a single ' ' char.
This commit is contained in:
parent
8a0e21b22b
commit
0522a8f71c
3 changed files with 21 additions and 1 deletions
|
@ -10,6 +10,8 @@ public:
|
|||
|
||||
const Text& node() const { return static_cast<const Text&>(*LayoutNode::node()); }
|
||||
|
||||
const String& text() const;
|
||||
|
||||
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