Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a214322c045e6fe421af461d12516959511d4d30
      
https://github.com/WebKit/WebKit/commit/a214322c045e6fe421af461d12516959511d4d30
  Author: Antti Koivisto <[email protected]>
  Date:   2026-04-20 (Mon, 20 Apr 2026)

  Changed paths:
    M Source/WebCore/style/StyleScopeRuleSets.cpp

  Log Message:
  -----------
  [:has() perf] Key invalidation RuleSet on invalidation selector
https://bugs.webkit.org/show_bug.cgi?id=312777
rdar://175161107

Reviewed by Alan Baradlay.

We may do unnecessary invalidation because a single invalidation selector 
matching can cause
many rules to be evaluated that don't contain that selector.

* Source/WebCore/style/StyleScopeRuleSets.cpp:
(WebCore::Style::ensureInvalidationRuleSets):

Include invalidation selector itself to the hash key when building invalidation 
RuleSets.
This also removes the need to do explicit deduping for selectors.

Canonical link: https://commits.webkit.org/311593@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to