[webkit-changes] [WebKit/WebKit] f1c09f: Use Ref<> for MatchedProperties::properties instea...

Chris Dumez noreply at github.com
Mon Jul 10 21:27:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f1c09f61e0a00983a3f6d6c7feda17866e1d7490
      https://github.com/WebKit/WebKit/commit/f1c09f61e0a00983a3f6d6c7feda17866e1d7490
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M Source/WebCore/style/ElementRuleCollector.cpp
    M Source/WebCore/style/MatchResult.h
    M Source/WebCore/style/PageRuleCollector.cpp
    M Source/WebCore/style/PropertyCascade.cpp

  Log Message:
  -----------
  Use Ref<> for MatchedProperties::properties instead of RefPtr<>
https://bugs.webkit.org/show_bug.cgi?id=259092

Reviewed by Tim Nguyen.

Use Ref<> for MatchedProperties::properties instead of RefPtr<>, to make it
clear it cannot be null.

* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::addElementStyleProperties):
(WebCore::Style::ElementRuleCollector::transferMatchedRules):
(WebCore::Style::ElementRuleCollector::matchAllRules):
(WebCore::Style::ElementRuleCollector::addMatchedProperties):
(WebCore::Style::ElementRuleCollector::addAuthorKeyframeRules):
* Source/WebCore/style/MatchResult.h:
(WebCore::Style::operator==):
(WebCore::Style::add):
* Source/WebCore/style/PageRuleCollector.cpp:
(WebCore::Style::PageRuleCollector::matchPageRules):
* Source/WebCore/style/PropertyCascade.cpp:
(WebCore::Style::PropertyCascade::addMatch):
(WebCore::Style::PropertyCascade::addImportantMatches):

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




More information about the webkit-changes mailing list