| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
|
| index e24a0d299506f74850f56787a3991ec2ef0e52b1..b8905ddb3a3e588a70d9235f1a1898dd85e8964e 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
|
| @@ -92,8 +92,12 @@ static SVGPaintDescription requestPaint(const LayoutObject& object, const Comput
|
| bool hasColor = false;
|
| switch (paintType) {
|
| case SVG_PAINTTYPE_CURRENTCOLOR:
|
| - case SVG_PAINTTYPE_RGBCOLOR:
|
| case SVG_PAINTTYPE_URI_CURRENTCOLOR:
|
| + // The keyword `currentcolor` takes its value from the value of the `color` property on the same element.
|
| + color = style.visitedDependentColor(CSSPropertyColor);
|
| + hasColor = true;
|
| + break;
|
| + case SVG_PAINTTYPE_RGBCOLOR:
|
| case SVG_PAINTTYPE_URI_RGBCOLOR:
|
| color = applyToFill ? svgStyle.fillPaintColor() : svgStyle.strokePaintColor();
|
| hasColor = true;
|
|
|