mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
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:
parent
570c6c8458
commit
3bd29ad98c
5 changed files with 52 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue