[webkit-changes] [WebKit/WebKit] c00fe9: Explicitly initialize color properties.

Matthieu Dubet noreply at github.com
Mon Sep 19 08:10:50 PDT 2022


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

  Changed paths:
    M Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp
    M Source/WebCore/rendering/style/StyleRareInheritedData.cpp

  Log Message:
  -----------
  Explicitly initialize color properties.
https://bugs.webkit.org/show_bug.cgi?id=245359

Reviewed by Antti Koivisto.

Before this change, those properties were implicitely
default-initialized to empty color, which is
interpreted as current color.
This change makes the current color initialization
explicit.

* Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp:
(WebCore::StyleFillData::StyleFillData):
* Source/WebCore/rendering/style/StyleRareInheritedData.cpp:
(WebCore::StyleRareInheritedData::StyleRareInheritedData):

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




More information about the webkit-changes mailing list