LibWeb: Copy "is inert" attribute into Paintable

...instead of reaching into DOM tree during hit-testing in order to
figure out if an element is inert. This is a part of the effert to make
possible running hit-testing solely based on data contained by the
paintable tree.
This commit is contained in:
Aliaksandr Kalenik 2025-10-13 17:13:22 +02:00 committed by Alexander Kalenik
commit 9e838cffb4
Notes: github-actions[bot] 2025-10-14 09:24:59 +00:00
3 changed files with 17 additions and 8 deletions

View file

@ -788,6 +788,9 @@ void HTMLElement::set_subtree_inertness(bool is_inert)
html_element.set_inert(is_inert);
return TraversalDecision::Continue;
});
if (auto paintable_box = this->paintable_box())
paintable_box->set_needs_paint_only_properties_update(true);
}
WebIDL::ExceptionOr<void> HTMLElement::cloned(Web::DOM::Node& copy, bool clone_children) const