LibWeb: Remove ViewportPaintable::refresh_clip_frames()

After d0da377767 clip frame state is no
longer depends on scroll state, so it could be calculated only once for
each layout invalidation.
This commit is contained in:
Aliaksandr Kalenik 2024-08-14 23:17:10 +02:00 committed by Andreas Kling
commit dc0d5da086
Notes: github-actions[bot] 2024-08-15 11:45:45 +00:00
8 changed files with 23 additions and 50 deletions

View file

@ -1157,6 +1157,9 @@ void Document::update_layout()
set_needs_to_resolve_paint_only_properties();
paintable()->assign_scroll_frames();
// assign_clip_frames() needs border-radius be resolved
update_paint_and_hit_testing_properties_if_needed();
paintable()->assign_clip_frames();
if (navigable->is_traversable()) {
@ -5196,12 +5199,6 @@ void Document::process_top_layer_removals()
}
}
void Document::set_needs_to_refresh_clip_state(bool b)
{
if (auto* paintable = this->paintable())
paintable->set_needs_to_refresh_clip_state(b);
}
void Document::set_needs_to_refresh_scroll_state(bool b)
{
if (auto* paintable = this->paintable())