mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-25 17:39:27 +00:00
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:
parent
81aeee3fb4
commit
9e838cffb4
Notes:
github-actions[bot]
2025-10-14 09:24:59 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 9e838cffb4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6465
3 changed files with 17 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue