mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-10 17:12:41 +02:00
Keep cached MatchingRule entries independent from the shadow root that owns the rule cache. Thread the effective rule shadow root through style matching as transient state instead, so a rule cache can later be shared by multiple scopes without copying every cached rule. This preserves the existing matching behavior by deriving the effective rule root from each cache lookup site. Pseudo-class invalidation already operates on a single style scope, so it no longer needs a per-rule scope filter.
11 KiB
11 KiB