LibHTML: Remove trailing whitespace in line boxes

After the splitting-into-lines pass, remove any trailing whitespace
from all of a block's line boxes.

This improves the appearance of text-align: justify/right :^)
This commit is contained in:
Andreas Kling 2019-10-20 17:18:28 +02:00
commit 3bd29ad98c
Notes: sideshowbarker 2024-07-19 11:36:33 +09:00
5 changed files with 52 additions and 10 deletions

View file

@ -22,9 +22,12 @@ public:
const FloatRect& rect() const { return m_rect; }
FloatRect& rect() { return m_rect; }
float width() const { return m_rect.width(); }
void render(RenderingContext&);
bool is_justifiable_whitespace() const;
StringView text() const;
private:
const LayoutNode& m_layout_node;