mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibWeb: Move paint properties invalidation flag into Document
Move paint-only properties invalidation flag to Document for consistency, as style and layout invalidation flags are already managed there.
This commit is contained in:
parent
9bccb8c8d7
commit
fc40d35012
5 changed files with 19 additions and 14 deletions
|
@ -2106,10 +2106,7 @@ void Navigable::paint(Painting::RecordingPainter& recording_painter, PaintConfig
|
|||
context.set_should_paint_overlay(config.paint_overlay);
|
||||
context.set_has_focus(config.has_focus);
|
||||
|
||||
if (m_needs_to_resolve_paint_only_properties) {
|
||||
document->paintable()->resolve_paint_only_properties();
|
||||
m_needs_to_resolve_paint_only_properties = false;
|
||||
}
|
||||
document->update_paint_and_hit_testing_properties_if_needed();
|
||||
|
||||
HashMap<Painting::PaintableBox const*, Painting::ViewportPaintable::ScrollFrame> scroll_frames;
|
||||
if (is_traversable()) {
|
||||
|
|
|
@ -180,8 +180,6 @@ public:
|
|||
};
|
||||
void paint(Painting::RecordingPainter&, PaintConfig);
|
||||
|
||||
void set_needs_to_resolve_paint_only_properties() { m_needs_to_resolve_paint_only_properties = true; }
|
||||
|
||||
protected:
|
||||
Navigable();
|
||||
|
||||
|
@ -223,8 +221,6 @@ private:
|
|||
|
||||
CSSPixelSize m_size;
|
||||
CSSPixelPoint m_viewport_scroll_offset;
|
||||
|
||||
bool m_needs_to_resolve_paint_only_properties { true };
|
||||
};
|
||||
|
||||
HashTable<Navigable*>& all_navigables();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue