mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +02:00
Several invalidation paths need to consider not only a node's own root scope, but also shadow scopes that can observe the node through :host(), ::slotted(), or ::part() selectors. Each caller open-coded that traversal, which made the dir/lang and dir=auto fixes carry the same shadow-boundary logic in multiple places. Add Node helpers for resolving a node's style scope and for visiting every style scope that may observe that node. Use them from the property, child-list, dir/lang, and dir=auto invalidation paths, and share the same style-scope lookup with DOM::AbstractElement and Layout::NodeWithStyle.
7.5 KiB
7.5 KiB