mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
LibWeb: Don't do horizontal inline line layout twice for last line
After pruning empty last line boxes, we now avoid re-running the horizontal fragment positioning step, since that would be wasted work.
This commit is contained in:
parent
b1fd801436
commit
70a56d21dc
4 changed files with 27 additions and 8 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
void trim_trailing_whitespace();
|
||||
|
||||
bool is_empty_or_ends_in_whitespace() const;
|
||||
bool is_empty() { return m_fragments.is_empty(); }
|
||||
bool is_empty() const { return m_fragments.is_empty(); }
|
||||
bool ends_with_forced_line_break() const;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue