[webkit-changes] [WebKit/WebKit] 7f449a: Rename *ShadowPseudoElement* to *UserAgentPart*

Tim Nguyen noreply at github.com
Fri Jan 5 18:09:06 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7f449ab1aa4febc931204ba1fae1be83d0902013
      https://github.com/WebKit/WebKit/commit/7f449ab1aa4febc931204ba1fae1be83d0902013
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2024-01-05 (Fri, 05 Jan 2024)

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

  Log Message:
  -----------
  Rename *ShadowPseudoElement* to *UserAgentPart*
https://bugs.webkit.org/show_bug.cgi?id=267157
rdar://120563131

Reviewed by Ryosuke Niwa.

Unify terminology across the codebase by renaming instances of ShadowPseudoElement to UserAgentPart.

* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::collectMatchingRules):
(WebCore::Style::ElementRuleCollector::matchUserAgentPartRules):
(WebCore::Style::ElementRuleCollector::matchPartPseudoElementRules):
(WebCore::Style::ElementRuleCollector::collectMatchingUserAgentPartRules):
(WebCore::Style::ElementRuleCollector::matchShadowPseudoElementRules): Deleted.
(WebCore::Style::ElementRuleCollector::collectMatchingShadowPseudoElementRules): Deleted.
* Source/WebCore/style/ElementRuleCollector.h:
* 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::userAgentPartRules const):
(WebCore::Style::RuleSet::hasUserAgentPartRules const):
(WebCore::Style::RuleSet::shadowPseudoElementRules const): Deleted.
(WebCore::Style::RuleSet::hasShadowPseudoElementRules const): Deleted.
* Source/WebCore/style/StyleInvalidationFunctions.h:
(WebCore::Style::traverseRuleFeatures):
* Source/WebCore/style/StyleInvalidator.cpp:
(WebCore::Style::Invalidator::collectRuleInformation):
(WebCore::Style::Invalidator::invalidateUserAgentParts):
(WebCore::Style::Invalidator::invalidateInShadowTreeIfNeeded):
(WebCore::Style::Invalidator::invalidateShadowPseudoElements): Deleted.
* Source/WebCore/style/StyleInvalidator.h:

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




More information about the webkit-changes mailing list