1
Fork 0
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:
Andreas Kling 2022-02-21 11:22:08 +01:00
parent 92266d2247
commit 2615728d6b
4 changed files with 15 additions and 14 deletions

View file

@ -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;