[webkit-changes] [WebKit/WebKit] 4af3e6: Replace checks for effectiveAccentColor().isValid()

Tim Nguyen noreply at github.com
Tue Sep 20 16:53:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4af3e6bf9f7427082d76f1366a341e7aa5152c29
      https://github.com/WebKit/WebKit/commit/4af3e6bf9f7427082d76f1366a341e7aa5152c29
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M Source/WebCore/rendering/RenderThemeAdwaita.cpp
    M Source/WebCore/rendering/RenderThemeIOS.mm

  Log Message:
  -----------
  Replace checks for effectiveAccentColor().isValid()
https://bugs.webkit.org/show_bug.cgi?id=245435
<rdar://100178048>

Reviewed by Aditya Keerthi.

The intent of these checks is to check if the accent-color is not auto, so we should use hasAutoAccentColor() instead.

This is in preparation of the refactoring changing Color to StyleColor.

* Source/WebCore/rendering/RenderThemeAdwaita.cpp:
(WebCore::getAccentColor):
* Source/WebCore/rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::adjustButtonLikeControlStyle const):
(WebCore::RenderThemeIOS::controlTintColor const):

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




More information about the webkit-changes mailing list