mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Rename invalidate_layout() => invalidate_layout_tree()
I believe this is slightly less confusing, since what the function does is trigger a full layout tree *rebuild*, not just a relayout.
This commit is contained in:
parent
e205723b95
commit
aa8f17aea4
Notes:
github-actions[bot]
2024-09-19 08:13:42 +00:00
Author: https://github.com/awesomekling
Commit: aa8f17aea4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1437
9 changed files with 14 additions and 14 deletions
|
@ -1049,7 +1049,7 @@ void Document::set_needs_layout()
|
|||
schedule_layout_update();
|
||||
}
|
||||
|
||||
void Document::invalidate_layout()
|
||||
void Document::invalidate_layout_tree()
|
||||
{
|
||||
tear_down_layout_tree();
|
||||
schedule_layout_update();
|
||||
|
@ -1282,7 +1282,7 @@ void Document::update_style()
|
|||
invalidate_display_list();
|
||||
}
|
||||
if (invalidation.rebuild_layout_tree) {
|
||||
invalidate_layout();
|
||||
invalidate_layout_tree();
|
||||
} else {
|
||||
if (invalidation.relayout)
|
||||
set_needs_layout();
|
||||
|
@ -2739,7 +2739,7 @@ void Document::evaluate_media_rules()
|
|||
if (any_media_queries_changed_match_state) {
|
||||
style_computer().invalidate_rule_cache();
|
||||
invalidate_style(StyleInvalidationReason::MediaQueryChangedMatchState);
|
||||
invalidate_layout();
|
||||
invalidate_layout_tree();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue