Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1625)

Unified Diff: Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp b/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
index 884da10baaeeae447dc6da28b95e161b2aa5b034..5693fb1081f98e1973376976e3fd0c2a058e0ff0 100644
--- a/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
@@ -49,7 +49,6 @@ bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyl
ASSERT(resourceMode != ApplyToDefaultMode);
const SVGRenderStyle* svgStyle = style ? style->svgStyle() : 0;
- ColorSpace colorSpace = style ? style->colorSpace() : ColorSpaceDeviceRGB;
bool isRenderingMask = false;
if (object->frame() && object->frame()->view())
@@ -60,7 +59,7 @@ bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyl
context->setAlpha(svgStyle->fillOpacity());
else
context->setAlpha(1);
- context->setFillColor(m_color, colorSpace);
+ context->setFillColor(m_color);
if (!isRenderingMask)
context->setFillRule(svgStyle ? svgStyle->fillRule() : RULE_NONZERO);
@@ -70,7 +69,7 @@ bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyl
// When rendering the mask for a RenderSVGResourceClipper, the stroke code path is never hit.
ASSERT(!isRenderingMask);
context->setAlpha(svgStyle ? svgStyle->strokeOpacity() : 1);
- context->setStrokeColor(m_color, colorSpace);
+ context->setStrokeColor(m_color);
if (style)
SVGRenderSupport::applyStrokeStyleToContext(context, style, object);
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourcePattern.cpp ('k') | Source/core/rendering/svg/SVGInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698