mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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:
committed by
Andreas Kling
parent
c4ce797366
commit
dc0d5da086
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user