mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
LibWeb: Store overflow data in the FormattingState
This commit is contained in:
parent
92266d2247
commit
2615728d6b
4 changed files with 15 additions and 14 deletions
|
@ -113,14 +113,7 @@ public:
|
|||
return m_overflow_data->scrollable_overflow_rect;
|
||||
}
|
||||
|
||||
OverflowData& ensure_overflow_data()
|
||||
{
|
||||
if (!m_overflow_data)
|
||||
m_overflow_data = make<OverflowData>();
|
||||
return *m_overflow_data;
|
||||
}
|
||||
|
||||
void clear_overflow_data() { m_overflow_data = nullptr; }
|
||||
void set_overflow_data(OwnPtr<OverflowData> data) { m_overflow_data = move(data); }
|
||||
|
||||
virtual void before_children_paint(PaintContext&, PaintPhase) override;
|
||||
virtual void after_children_paint(PaintContext&, PaintPhase) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue