mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibWeb: Add LineBox::absolute_rect()
Let's just calculate this once, at the end of a layout, and then never have to worry about it again during painting.
This commit is contained in:
parent
d620dd516c
commit
f23baf0a2d
2 changed files with 23 additions and 7 deletions
|
@ -32,11 +32,16 @@ public:
|
|||
|
||||
CSSPixels original_available_width() const { return m_original_available_width; }
|
||||
|
||||
CSSPixelRect const& absolute_rect() const { return m_absolute_rect; }
|
||||
void set_absolute_rect(CSSPixelRect const& rect) { m_absolute_rect = rect; }
|
||||
|
||||
private:
|
||||
friend class BlockContainer;
|
||||
friend class InlineFormattingContext;
|
||||
friend class LineBuilder;
|
||||
|
||||
CSSPixelRect m_absolute_rect;
|
||||
|
||||
Vector<LineBoxFragment> m_fragments;
|
||||
CSSPixels m_width { 0 };
|
||||
CSSPixels m_height { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue