mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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:
parent
c4ce797366
commit
dc0d5da086
Notes:
github-actions[bot]
2024-08-15 11:45:45 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: dc0d5da086
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1079
8 changed files with 23 additions and 50 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue