1
Fork 0
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:
Andreas Kling 2021-04-29 08:51:31 +02:00
parent 2f1ee91b3e
commit d3e7529297
2 changed files with 35 additions and 28 deletions

View file

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