[webkit-changes] [WebKit/WebKit] c69e0a: Factorize CSSValueCurrentColor checks.

Matthieu Dubet noreply at github.com
Wed Sep 21 10:53:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c69e0a9fdc0ce5ef20afed35a518e44b188b6630
      https://github.com/WebKit/WebKit/commit/c69e0a9fdc0ce5ef20afed35a518e44b188b6630
  Author: Matthieu Dubet <m_dubet at apple.com>
  Date:   2022-09-21 (Wed, 21 Sep 2022)

  Changed paths:
    M Source/WebCore/css/StyleColor.cpp
    M Source/WebCore/css/StyleColor.h
    M Source/WebCore/style/ElementRuleCollector.cpp
    M Source/WebCore/style/StyleBuilderCustom.h

  Log Message:
  -----------
  Factorize CSSValueCurrentColor checks.
https://bugs.webkit.org/show_bug.cgi?id=245443

Reviewed by Tim Nguyen and Chris Dumez.

This is part of the more general refactoring from Color to StyleColor.

* Source/WebCore/css/StyleColor.cpp:
(WebCore::StyleColor::isColorKeyword):
* Source/WebCore/css/StyleColor.h:
(WebCore::StyleColor::isCurrentColorKeyword):
(WebCore::StyleColor::isCurrentColor):
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::addMatchedProperties):
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::colorAndSVGPaintType):
(WebCore::Style::BuilderCustom::applyValueFill):
(WebCore::Style::BuilderCustom::applyValueStroke):

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




More information about the webkit-changes mailing list