mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
LibWeb: Move Layout::TextNode whitespace collapse to separate function
This commit is contained in:
parent
2f1ee91b3e
commit
d3e7529297
2 changed files with 35 additions and 28 deletions
|
@ -53,6 +53,8 @@ public:
|
|||
Utf8View::Iterator m_iterator;
|
||||
};
|
||||
|
||||
void compute_text_for_rendering(bool collapse, bool previous_is_empty_or_ends_in_whitespace);
|
||||
|
||||
private:
|
||||
virtual bool is_text_node() const final { return true; }
|
||||
virtual bool wants_mouse_events() const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue