1
Fork 0
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:
Andreas Kling 2019-06-15 23:17:08 +02:00
parent 8a0e21b22b
commit 0522a8f71c
3 changed files with 21 additions and 1 deletions

View file

@ -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; }