Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use StyleColor object instead of Color in WebCore #4068

Merged

Conversation

mdubet
Copy link
Contributor

@mdubet mdubet commented Sep 6, 2022

b6c0182

Use StyleColor object instead of Color in WebCore
https://bugs.webkit.org/show_bug.cgi?id=234691
rdar://problem/87050763

Reviewed by Antti Koivisto.

With recent dynamic color features in CSS levels, such as currentcolor or relative color,
WebCore need to propagate an unresolved object which will eventually (at render time)
compute to an actual platform Color.

This patch contains:
  - the implementation of StyleColor, which now represented a
  maybe unresolved yet Color.
  - the specificity of setting the color property (where currentcolor
  is actually the inherited computed value of color)
  is now handled in StyleBuilderCustom.h instead of
  generated by the makeprop.pl script.
  - missing color initialization in object constructors
  (such as BorderValue) are fixed.

* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::PropertyWrapperColor::PropertyWrapperColor):
(WebCore::PropertyWrapperColor::value const):
(WebCore::PropertyWrapperColor::unresolvedValue const):
(WebCore::PropertyWrapperVisitedAffectedColor::PropertyWrapperVisitedAffectedColor):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
(WebCore::PropertyWrapperMaybeInvalidColor::PropertyWrapperMaybeInvalidColor): Deleted.
(WebCore::PropertyWrapperMaybeInvalidColor::value const): Deleted.
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::currentColorOrValidColor const):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/css/ComputedStyleExtractor.h:
* Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::adjustSVGPaint const):
(WebCore::ComputedStyleExtractor::svgPropertyValue):
(WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor const): Deleted.
* Source/WebCore/css/StyleColor.cpp:
(WebCore::StyleColor::currentColor):
(WebCore::serializationForRenderTreeAsText):
(WebCore::serializationForCSS):
(WebCore::StyleColor::colorFromAbsoluteKeyword):
(WebCore::StyleColor::colorFromKeyword):
(WebCore::operator<<):
(WebCore::StyleColor::debugDescription const):
(WebCore::StyleColor::resolveColor const):
(WebCore::StyleColor::resolveColorWithoutCurrentColor const):
(WebCore::StyleColor::isCurrentColor const):
(WebCore::StyleColor::isAbsoluteColor const):
(WebCore::StyleColor::absoluteColor const):
(WebCore::StyleColor::StyleColor):
* Source/WebCore/css/StyleColor.h:
* Source/WebCore/css/makeprop.pl:
(generateInheritValueSetter):
(generateValueSetter):
(handleCurrentColorValue): Deleted.
* Source/WebCore/dom/Document.h:
* Source/WebCore/editing/EditingStyle.cpp:
(WebCore::EditingStyle::removeTextFillAndStrokeColorsIfNeeded):
* Source/WebCore/editing/FrameSelection.cpp:
(WebCore::CaretBase::computeCaretColor):
* Source/WebCore/editing/cocoa/DataDetection.mm:
(WebCore::DataDetection::detectContentInRange):
* Source/WebCore/page/DragController.cpp:
(WebCore::DragController::insertDroppedImagePlaceholdersAtCaret):
* Source/WebCore/rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::calculateHighlightColor const):
* Source/WebCore/rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::adjustButtonLikeControlStyle const):
* Source/WebCore/rendering/RenderTreeAsText.cpp:
(WebCore::RenderTreeAsText::writeRenderObject):
* Source/WebCore/rendering/StyledMarkedText.cpp:
(WebCore::resolveStyleForMarkedText):
* Source/WebCore/rendering/style/BorderValue.cpp:
(WebCore::BorderValue::BorderValue):
(WebCore::BorderValue::isTransparent const):
* Source/WebCore/rendering/style/BorderValue.h:
(WebCore::BorderValue::setColor):
(WebCore::BorderValue::color const):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::unresolvedColorForProperty const):
(WebCore::RenderStyle::currentColor):
(WebCore::RenderStyle::isCurrentColor):
(WebCore::RenderStyle::colorResolvingCurrentColor const):
(WebCore::RenderStyle::resolvedColorAndColorFilter const):
(WebCore::RenderStyle::initialTapHighlightColor):
* Source/WebCore/rendering/style/RenderStyle.h:
(WebCore::RenderStyle::tapHighlightColor const):
(WebCore::RenderStyle::setBackgroundColor):
(WebCore::RenderStyle::setBorderLeftColor):
(WebCore::RenderStyle::setBorderRightColor):
(WebCore::RenderStyle::setBorderTopColor):
(WebCore::RenderStyle::setBorderBottomColor):
(WebCore::RenderStyle::setOutlineColor):
(WebCore::RenderStyle::setTextStrokeColor):
(WebCore::RenderStyle::setTextFillColor):
(WebCore::RenderStyle::setCaretColor):
(WebCore::RenderStyle::setAccentColor):
(WebCore::RenderStyle::setColumnRuleColor):
(WebCore::RenderStyle::setTextDecorationColor):
(WebCore::RenderStyle::setTextEmphasisColor):
(WebCore::RenderStyle::setTapHighlightColor):
(WebCore::RenderStyle::strokeColor const):
(WebCore::RenderStyle::setStrokeColor):
(WebCore::RenderStyle::setVisitedLinkStrokeColor):
(WebCore::RenderStyle::visitedLinkStrokeColor const):
(WebCore::RenderStyle::initialStrokeColor):
(WebCore::RenderStyle::fillPaintColor const):
(WebCore::RenderStyle::setFillPaintColor):
(WebCore::RenderStyle::strokePaintColor const):
(WebCore::RenderStyle::setStrokePaintColor):
(WebCore::RenderStyle::setStopColor):
(WebCore::RenderStyle::setFloodColor):
(WebCore::RenderStyle::setLightingColor):
(WebCore::RenderStyle::backgroundColorEqualsToColorIgnoringVisited const):
(WebCore::RenderStyle::initialTextStrokeColor):
(WebCore::RenderStyle::initialTextDecorationColor):
(WebCore::RenderStyle::initialBackgroundColor):
(WebCore::RenderStyle::initialTextEmphasisColor):
(WebCore::RenderStyle::setVisitedLinkBackgroundColor):
(WebCore::RenderStyle::setVisitedLinkBorderLeftColor):
(WebCore::RenderStyle::setVisitedLinkBorderRightColor):
(WebCore::RenderStyle::setVisitedLinkBorderBottomColor):
(WebCore::RenderStyle::setVisitedLinkBorderTopColor):
(WebCore::RenderStyle::setVisitedLinkOutlineColor):
(WebCore::RenderStyle::setVisitedLinkColumnRuleColor):
(WebCore::RenderStyle::setVisitedLinkTextDecorationColor):
(WebCore::RenderStyle::setVisitedLinkTextEmphasisColor):
(WebCore::RenderStyle::setVisitedLinkTextFillColor):
(WebCore::RenderStyle::setVisitedLinkTextStrokeColor):
(WebCore::RenderStyle::setVisitedLinkCaretColor):
(WebCore::RenderStyle::borderLeftColor const):
(WebCore::RenderStyle::borderRightColor const):
(WebCore::RenderStyle::borderTopColor const):
(WebCore::RenderStyle::borderBottomColor const):
(WebCore::RenderStyle::backgroundColor const):
(WebCore::RenderStyle::columnRuleColor const):
(WebCore::RenderStyle::outlineColor const):
(WebCore::RenderStyle::textEmphasisColor const):
(WebCore::RenderStyle::textFillColor const):
(WebCore::RenderStyle::initialTextFillColor):
(WebCore::RenderStyle::textStrokeColor const):
(WebCore::RenderStyle::caretColor const):
(WebCore::RenderStyle::visitedLinkBackgroundColor const):
(WebCore::RenderStyle::visitedLinkBorderLeftColor const):
(WebCore::RenderStyle::visitedLinkBorderRightColor const):
(WebCore::RenderStyle::visitedLinkBorderBottomColor const):
(WebCore::RenderStyle::visitedLinkBorderTopColor const):
(WebCore::RenderStyle::visitedLinkOutlineColor const):
(WebCore::RenderStyle::visitedLinkColumnRuleColor const):
(WebCore::RenderStyle::textDecorationColor const):
(WebCore::RenderStyle::visitedLinkTextDecorationColor const):
(WebCore::RenderStyle::visitedLinkTextEmphasisColor const):
(WebCore::RenderStyle::visitedLinkTextFillColor const):
(WebCore::RenderStyle::visitedLinkTextStrokeColor const):
(WebCore::RenderStyle::visitedLinkCaretColor const):
(WebCore::RenderStyle::stopColor const):
(WebCore::RenderStyle::floodColor const):
(WebCore::RenderStyle::lightingColor const):
(WebCore::RenderStyle::accentColor const):
(WebCore::RenderStyle::currentColor): Deleted.
(WebCore::RenderStyle::isCurrentColor): Deleted.
* Source/WebCore/rendering/style/SVGRenderStyle.h:
(WebCore::SVGRenderStyle::initialFillPaintColor):
(WebCore::SVGRenderStyle::initialStrokePaintColor):
(WebCore::SVGRenderStyle::initialStopColor):
(WebCore::SVGRenderStyle::initialFloodColor):
(WebCore::SVGRenderStyle::initialLightingColor):
(WebCore::SVGRenderStyle::fillPaintColor const):
(WebCore::SVGRenderStyle::strokePaintColor const):
(WebCore::SVGRenderStyle::stopColor const):
(WebCore::SVGRenderStyle::floodColor const):
(WebCore::SVGRenderStyle::lightingColor const):
(WebCore::SVGRenderStyle::visitedLinkFillPaintColor const):
(WebCore::SVGRenderStyle::visitedLinkStrokePaintColor const):
(WebCore::SVGRenderStyle::setFillPaint):
(WebCore::SVGRenderStyle::setStrokePaint):
(WebCore::SVGRenderStyle::setStopColor):
(WebCore::SVGRenderStyle::setFloodColor):
(WebCore::SVGRenderStyle::setLightingColor):
* Source/WebCore/rendering/style/SVGRenderStyleDefs.h:
* Source/WebCore/rendering/style/StyleBackgroundData.h:
* Source/WebCore/rendering/style/StyleInheritedData.h:
* Source/WebCore/rendering/style/StyleMultiColData.h:
* Source/WebCore/rendering/style/StyleRareInheritedData.cpp:
* Source/WebCore/rendering/style/StyleRareInheritedData.h:
* Source/WebCore/rendering/style/StyleRareNonInheritedData.h:
* Source/WebCore/rendering/svg/RenderSVGResource.cpp:
(WebCore::inheritColorFromParentStyleIfNeeded):
(WebCore::requestPaintingResource):
* Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::BuilderConverter::convertTapHighlightColor):
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyInheritCaretColor):
(WebCore::Style::colorAndSVGPaintType):
(WebCore::Style::BuilderCustom::applyValueColor):
* Source/WebCore/style/StyleBuilderState.cpp:
(WebCore::Style::BuilderState::colorFromPrimitiveValue const):
(WebCore::Style::BuilderState::colorFromPrimitiveValueWithResolvedCurrentColor const):
* Source/WebCore/style/StyleBuilderState.h:
* Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp:
(WebCore::SVGFEDiffuseLightingElement::setFilterEffectAttribute):
(WebCore::SVGFEDiffuseLightingElement::createFilterEffect const):
* Source/WebCore/svg/SVGFEDropShadowElement.cpp:
(WebCore::SVGFEDropShadowElement::setFilterEffectAttribute):
(WebCore::SVGFEDropShadowElement::createFilterEffect const):
* Source/WebCore/svg/SVGFEFloodElement.cpp:
(WebCore::SVGFEFloodElement::setFilterEffectAttribute):
(WebCore::SVGFEFloodElement::createFilterEffect const):
* Source/WebCore/svg/SVGFESpecularLightingElement.cpp:
(WebCore::SVGFESpecularLightingElement::setFilterEffectAttribute):
(WebCore::SVGFESpecularLightingElement::createFilterEffect const):
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::sendTapHighlightForNodeIfNecessary):

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

ad6098d

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 🧪 win
✅ 🧪 bindings ✅ 🛠 ios-sim 🛠 mac-debug ✅ 🛠 gtk ✅ 🛠 wincairo
✅ 🧪 webkitperl 🧪 ios-wk2 🛠 mac-AS-debug 🧪 gtk-wk2
✅ 🧪 api-ios 🧪 api-mac ❌ 🧪 api-gtk
✅ 🛠 tv 🧪 mac-wk1
✅ 🛠 tv-sim ✅ 🧪 mac-wk2
✅ 🛠 🧪 merge ✅ 🛠 watch 🧪 mac-AS-debug-wk2
✅ 🛠 watch-sim ✅ 🧪 mac-wk2-stress

@mdubet mdubet self-assigned this Sep 6, 2022
@mdubet mdubet added CSS Cascading Style Sheets implementation Other labels Sep 6, 2022
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Sep 6, 2022
@weinig
Copy link
Contributor

weinig commented Sep 6, 2022

I think this would be easier to work through if this was divided up a bit, starting with a change where StyleColor is a simple wrapper around Color and no behavior changes.

It would then be more straightforward to review the additional changes on top of that.

@weinig
Copy link
Contributor

weinig commented Sep 6, 2022

Great work on this so far!

Source/WebCore/css/CSSValuePool.cpp Outdated Show resolved Hide resolved
Source/WebCore/css/StyleColor.cpp Outdated Show resolved Hide resolved
Source/WebCore/css/StyleColor.cpp Outdated Show resolved Hide resolved
Source/WebCore/css/StyleColor.cpp Outdated Show resolved Hide resolved
Source/WebCore/css/StyleColor.h Outdated Show resolved Hide resolved
Source/WebCore/editing/cocoa/HTMLConverter.mm Outdated Show resolved Hide resolved
Source/WebCore/editing/cocoa/HTMLConverter.mm Outdated Show resolved Hide resolved
Source/WebCore/html/canvas/CanvasStyle.cpp Outdated Show resolved Hide resolved
Source/WebCore/page/DragController.cpp Outdated Show resolved Hide resolved
Source/WebCore/style/StyleBuilderCustom.h Outdated Show resolved Hide resolved
@mdubet mdubet force-pushed the color-functions-currentcolor branch from d4c5033 to 8eed14c Compare September 7, 2022 13:08
@mdubet mdubet force-pushed the color-functions-currentcolor branch from 8eed14c to e5c3664 Compare September 7, 2022 15:28
@weinig weinig self-requested a review September 7, 2022 17:38
@smfr smfr requested a review from heycam September 8, 2022 01:03
@mdubet mdubet force-pushed the color-functions-currentcolor branch from e5c3664 to 52f9d80 Compare September 8, 2022 09:46
Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp Outdated Show resolved Hide resolved
Source/WebCore/svg/SVGFEDropShadowElement.cpp Outdated Show resolved Hide resolved
Source/WebCore/svg/SVGFEFloodElement.cpp Outdated Show resolved Hide resolved
Source/WebCore/svg/SVGFESpecularLightingElement.cpp Outdated Show resolved Hide resolved
Source/WebCore/svg/SVGFESpecularLightingElement.cpp Outdated Show resolved Hide resolved
Source/WebCore/css/StyleColor.h Outdated Show resolved Hide resolved
Source/WebCore/css/StyleColor.h Outdated Show resolved Hide resolved

static StyleColor currentColor();
StyleColor();
StyleColor(const Color&);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to mark this explicit. I think it reveals some cases where Color is unnecessarily converted to StyleColor. (or maybe it just creates noise, hard to tell).

Source/WebCore/rendering/RenderThemeIOS.mm Outdated Show resolved Hide resolved
@@ -1229,11 +1229,11 @@ static void adjustInputElementButtonStyle(RenderStyle& style, const HTMLInputEle
if (!element.active())
return;

auto textColor = style.color();
auto textColor = style.colorResolvingCurrentColor(style.color());
if (textColor.isValid())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not from this patch, but it shouldn't ever be invalid either.

@mdubet mdubet force-pushed the color-functions-currentcolor branch from d7663bb to 7865301 Compare October 3, 2022 13:39
@nt1m nt1m added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged merge-queue Applied to send a pull request to merge-queue labels Oct 3, 2022
@mdubet mdubet force-pushed the color-functions-currentcolor branch from 7865301 to ad6098d Compare October 3, 2022 17:38
@nt1m nt1m added the merge-queue Applied to send a pull request to merge-queue label Oct 3, 2022
https://bugs.webkit.org/show_bug.cgi?id=234691
rdar://problem/87050763

Reviewed by Antti Koivisto.

With recent dynamic color features in CSS levels, such as currentcolor or relative color,
WebCore need to propagate an unresolved object which will eventually (at render time)
compute to an actual platform Color.

This patch contains:
  - the implementation of StyleColor, which now represented a
  maybe unresolved yet Color.
  - the specificity of setting the color property (where currentcolor
  is actually the inherited computed value of color)
  is now handled in StyleBuilderCustom.h instead of
  generated by the makeprop.pl script.
  - missing color initialization in object constructors
  (such as BorderValue) are fixed.

* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::PropertyWrapperColor::PropertyWrapperColor):
(WebCore::PropertyWrapperColor::value const):
(WebCore::PropertyWrapperColor::unresolvedValue const):
(WebCore::PropertyWrapperVisitedAffectedColor::PropertyWrapperVisitedAffectedColor):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
(WebCore::PropertyWrapperMaybeInvalidColor::PropertyWrapperMaybeInvalidColor): Deleted.
(WebCore::PropertyWrapperMaybeInvalidColor::value const): Deleted.
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::currentColorOrValidColor const):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/css/ComputedStyleExtractor.h:
* Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::adjustSVGPaint const):
(WebCore::ComputedStyleExtractor::svgPropertyValue):
(WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor const): Deleted.
* Source/WebCore/css/StyleColor.cpp:
(WebCore::StyleColor::currentColor):
(WebCore::serializationForRenderTreeAsText):
(WebCore::serializationForCSS):
(WebCore::StyleColor::colorFromAbsoluteKeyword):
(WebCore::StyleColor::colorFromKeyword):
(WebCore::operator<<):
(WebCore::StyleColor::debugDescription const):
(WebCore::StyleColor::resolveColor const):
(WebCore::StyleColor::resolveColorWithoutCurrentColor const):
(WebCore::StyleColor::isCurrentColor const):
(WebCore::StyleColor::isAbsoluteColor const):
(WebCore::StyleColor::absoluteColor const):
(WebCore::StyleColor::StyleColor):
* Source/WebCore/css/StyleColor.h:
* Source/WebCore/css/makeprop.pl:
(generateInheritValueSetter):
(generateValueSetter):
(handleCurrentColorValue): Deleted.
* Source/WebCore/dom/Document.h:
* Source/WebCore/editing/EditingStyle.cpp:
(WebCore::EditingStyle::removeTextFillAndStrokeColorsIfNeeded):
* Source/WebCore/editing/FrameSelection.cpp:
(WebCore::CaretBase::computeCaretColor):
* Source/WebCore/editing/cocoa/DataDetection.mm:
(WebCore::DataDetection::detectContentInRange):
* Source/WebCore/page/DragController.cpp:
(WebCore::DragController::insertDroppedImagePlaceholdersAtCaret):
* Source/WebCore/rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::calculateHighlightColor const):
* Source/WebCore/rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::adjustButtonLikeControlStyle const):
* Source/WebCore/rendering/RenderTreeAsText.cpp:
(WebCore::RenderTreeAsText::writeRenderObject):
* Source/WebCore/rendering/StyledMarkedText.cpp:
(WebCore::resolveStyleForMarkedText):
* Source/WebCore/rendering/style/BorderValue.cpp:
(WebCore::BorderValue::BorderValue):
(WebCore::BorderValue::isTransparent const):
* Source/WebCore/rendering/style/BorderValue.h:
(WebCore::BorderValue::setColor):
(WebCore::BorderValue::color const):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::unresolvedColorForProperty const):
(WebCore::RenderStyle::currentColor):
(WebCore::RenderStyle::isCurrentColor):
(WebCore::RenderStyle::colorResolvingCurrentColor const):
(WebCore::RenderStyle::resolvedColorAndColorFilter const):
(WebCore::RenderStyle::initialTapHighlightColor):
* Source/WebCore/rendering/style/RenderStyle.h:
(WebCore::RenderStyle::tapHighlightColor const):
(WebCore::RenderStyle::setBackgroundColor):
(WebCore::RenderStyle::setBorderLeftColor):
(WebCore::RenderStyle::setBorderRightColor):
(WebCore::RenderStyle::setBorderTopColor):
(WebCore::RenderStyle::setBorderBottomColor):
(WebCore::RenderStyle::setOutlineColor):
(WebCore::RenderStyle::setTextStrokeColor):
(WebCore::RenderStyle::setTextFillColor):
(WebCore::RenderStyle::setCaretColor):
(WebCore::RenderStyle::setAccentColor):
(WebCore::RenderStyle::setColumnRuleColor):
(WebCore::RenderStyle::setTextDecorationColor):
(WebCore::RenderStyle::setTextEmphasisColor):
(WebCore::RenderStyle::setTapHighlightColor):
(WebCore::RenderStyle::strokeColor const):
(WebCore::RenderStyle::setStrokeColor):
(WebCore::RenderStyle::setVisitedLinkStrokeColor):
(WebCore::RenderStyle::visitedLinkStrokeColor const):
(WebCore::RenderStyle::initialStrokeColor):
(WebCore::RenderStyle::fillPaintColor const):
(WebCore::RenderStyle::setFillPaintColor):
(WebCore::RenderStyle::strokePaintColor const):
(WebCore::RenderStyle::setStrokePaintColor):
(WebCore::RenderStyle::setStopColor):
(WebCore::RenderStyle::setFloodColor):
(WebCore::RenderStyle::setLightingColor):
(WebCore::RenderStyle::backgroundColorEqualsToColorIgnoringVisited const):
(WebCore::RenderStyle::initialTextStrokeColor):
(WebCore::RenderStyle::initialTextDecorationColor):
(WebCore::RenderStyle::initialBackgroundColor):
(WebCore::RenderStyle::initialTextEmphasisColor):
(WebCore::RenderStyle::setVisitedLinkBackgroundColor):
(WebCore::RenderStyle::setVisitedLinkBorderLeftColor):
(WebCore::RenderStyle::setVisitedLinkBorderRightColor):
(WebCore::RenderStyle::setVisitedLinkBorderBottomColor):
(WebCore::RenderStyle::setVisitedLinkBorderTopColor):
(WebCore::RenderStyle::setVisitedLinkOutlineColor):
(WebCore::RenderStyle::setVisitedLinkColumnRuleColor):
(WebCore::RenderStyle::setVisitedLinkTextDecorationColor):
(WebCore::RenderStyle::setVisitedLinkTextEmphasisColor):
(WebCore::RenderStyle::setVisitedLinkTextFillColor):
(WebCore::RenderStyle::setVisitedLinkTextStrokeColor):
(WebCore::RenderStyle::setVisitedLinkCaretColor):
(WebCore::RenderStyle::borderLeftColor const):
(WebCore::RenderStyle::borderRightColor const):
(WebCore::RenderStyle::borderTopColor const):
(WebCore::RenderStyle::borderBottomColor const):
(WebCore::RenderStyle::backgroundColor const):
(WebCore::RenderStyle::columnRuleColor const):
(WebCore::RenderStyle::outlineColor const):
(WebCore::RenderStyle::textEmphasisColor const):
(WebCore::RenderStyle::textFillColor const):
(WebCore::RenderStyle::initialTextFillColor):
(WebCore::RenderStyle::textStrokeColor const):
(WebCore::RenderStyle::caretColor const):
(WebCore::RenderStyle::visitedLinkBackgroundColor const):
(WebCore::RenderStyle::visitedLinkBorderLeftColor const):
(WebCore::RenderStyle::visitedLinkBorderRightColor const):
(WebCore::RenderStyle::visitedLinkBorderBottomColor const):
(WebCore::RenderStyle::visitedLinkBorderTopColor const):
(WebCore::RenderStyle::visitedLinkOutlineColor const):
(WebCore::RenderStyle::visitedLinkColumnRuleColor const):
(WebCore::RenderStyle::textDecorationColor const):
(WebCore::RenderStyle::visitedLinkTextDecorationColor const):
(WebCore::RenderStyle::visitedLinkTextEmphasisColor const):
(WebCore::RenderStyle::visitedLinkTextFillColor const):
(WebCore::RenderStyle::visitedLinkTextStrokeColor const):
(WebCore::RenderStyle::visitedLinkCaretColor const):
(WebCore::RenderStyle::stopColor const):
(WebCore::RenderStyle::floodColor const):
(WebCore::RenderStyle::lightingColor const):
(WebCore::RenderStyle::accentColor const):
(WebCore::RenderStyle::currentColor): Deleted.
(WebCore::RenderStyle::isCurrentColor): Deleted.
* Source/WebCore/rendering/style/SVGRenderStyle.h:
(WebCore::SVGRenderStyle::initialFillPaintColor):
(WebCore::SVGRenderStyle::initialStrokePaintColor):
(WebCore::SVGRenderStyle::initialStopColor):
(WebCore::SVGRenderStyle::initialFloodColor):
(WebCore::SVGRenderStyle::initialLightingColor):
(WebCore::SVGRenderStyle::fillPaintColor const):
(WebCore::SVGRenderStyle::strokePaintColor const):
(WebCore::SVGRenderStyle::stopColor const):
(WebCore::SVGRenderStyle::floodColor const):
(WebCore::SVGRenderStyle::lightingColor const):
(WebCore::SVGRenderStyle::visitedLinkFillPaintColor const):
(WebCore::SVGRenderStyle::visitedLinkStrokePaintColor const):
(WebCore::SVGRenderStyle::setFillPaint):
(WebCore::SVGRenderStyle::setStrokePaint):
(WebCore::SVGRenderStyle::setStopColor):
(WebCore::SVGRenderStyle::setFloodColor):
(WebCore::SVGRenderStyle::setLightingColor):
* Source/WebCore/rendering/style/SVGRenderStyleDefs.h:
* Source/WebCore/rendering/style/StyleBackgroundData.h:
* Source/WebCore/rendering/style/StyleInheritedData.h:
* Source/WebCore/rendering/style/StyleMultiColData.h:
* Source/WebCore/rendering/style/StyleRareInheritedData.cpp:
* Source/WebCore/rendering/style/StyleRareInheritedData.h:
* Source/WebCore/rendering/style/StyleRareNonInheritedData.h:
* Source/WebCore/rendering/svg/RenderSVGResource.cpp:
(WebCore::inheritColorFromParentStyleIfNeeded):
(WebCore::requestPaintingResource):
* Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::BuilderConverter::convertTapHighlightColor):
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyInheritCaretColor):
(WebCore::Style::colorAndSVGPaintType):
(WebCore::Style::BuilderCustom::applyValueColor):
* Source/WebCore/style/StyleBuilderState.cpp:
(WebCore::Style::BuilderState::colorFromPrimitiveValue const):
(WebCore::Style::BuilderState::colorFromPrimitiveValueWithResolvedCurrentColor const):
* Source/WebCore/style/StyleBuilderState.h:
* Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp:
(WebCore::SVGFEDiffuseLightingElement::setFilterEffectAttribute):
(WebCore::SVGFEDiffuseLightingElement::createFilterEffect const):
* Source/WebCore/svg/SVGFEDropShadowElement.cpp:
(WebCore::SVGFEDropShadowElement::setFilterEffectAttribute):
(WebCore::SVGFEDropShadowElement::createFilterEffect const):
* Source/WebCore/svg/SVGFEFloodElement.cpp:
(WebCore::SVGFEFloodElement::setFilterEffectAttribute):
(WebCore::SVGFEFloodElement::createFilterEffect const):
* Source/WebCore/svg/SVGFESpecularLightingElement.cpp:
(WebCore::SVGFESpecularLightingElement::setFilterEffectAttribute):
(WebCore::SVGFESpecularLightingElement::createFilterEffect const):
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::sendTapHighlightForNodeIfNecessary):

Canonical link: https://commits.webkit.org/255095@main
@webkit-commit-queue
Copy link
Collaborator

Committed 255095@main (b6c0182): https://commits.webkit.org/255095@main

Reviewed commits have been landed. Closing PR #4068 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Oct 3, 2022
@webkit-early-warning-system webkit-early-warning-system merged commit b6c0182 into WebKit:main Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Cascading Style Sheets implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants