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:
Andreas Kling
2024-09-19 07:40:45 +02:00
committed by Andreas Kling
parent e205723b95
commit aa8f17aea4
9 changed files with 14 additions and 14 deletions

View File

@@ -987,7 +987,7 @@ void HTMLInputElement::update_file_input_shadow_tree()
m_file_label->set_text_content(MUST(String::formatted("No {} selected.", files_label)));
}
document().invalidate_layout();
document().invalidate_layout_tree();
}
void HTMLInputElement::create_range_input_shadow_tree()
@@ -1315,7 +1315,7 @@ WebIDL::ExceptionOr<void> HTMLInputElement::handle_src_attribute(String const& v
});
m_load_event_delayer.clear();
document().invalidate_layout();
document().invalidate_layout_tree();
},
[this, &realm]() {
// 2. Otherwise, if the fetching process fails without a response from the remote server, or completes but the