Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7e97360f5f11b833dd9108c492564c740b127f9d
      
https://github.com/WebKit/WebKit/commit/7e97360f5f11b833dd9108c492564c740b127f9d
  Author: Tim Nguyen <n...@apple.com>
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
    M Source/WebCore/style/ElementRuleCollector.cpp
    M Source/WebCore/style/RuleSet.cpp
    M Source/WebCore/style/RuleSet.h

  Log Message:
  -----------
  Add RuleSet bucket for :root selector
https://bugs.webkit.org/show_bug.cgi?id=271713
rdar://125423936

Reviewed by Antti Koivisto.

Optimize :root selector by making it go in its own bucket instead of using the 
universal bucket.

* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::collectMatchingRules):
* Source/WebCore/style/RuleSet.cpp:
(WebCore::Style::RuleSet::addRule):
(WebCore::Style::RuleSet::traverseRuleDatas):
(WebCore::Style::RuleSet::shrinkToFit):
* Source/WebCore/style/RuleSet.h:
(WebCore::Style::RuleSet::rootElementRules const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to