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

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

Issue 637503003: Prefer using RenderSVGResourceMode when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGResource.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResource.cpp b/Source/core/rendering/svg/RenderSVGResource.cpp
index e8f99f76cec0ef303158711be9958f36bbf51d7d..517a57c17dbb15e772d34337c8cef38987c73c77 100644
--- a/Source/core/rendering/svg/RenderSVGResource.cpp
+++ b/Source/core/rendering/svg/RenderSVGResource.cpp
@@ -142,8 +142,6 @@ void RenderSVGResource::updateGraphicsContext(GraphicsContext* context, const Re
// When rendering the mask for a RenderSVGResourceClipper, the stroke code path is never hit.
ASSERT(resourceMode == ApplyToFillMode);
context->setAlphaAsFloat(1);
- if (resourceModeFlags & ApplyToTextMode)
- context->setTextDrawingMode(TextModeFill);
return;
}
@@ -156,9 +154,6 @@ void RenderSVGResource::updateGraphicsContext(GraphicsContext* context, const Re
context->setAlphaAsFloat(svgStyle.strokeOpacity());
SVGRenderSupport::applyStrokeStyleToContext(context, style, &renderer);
}
-
- if (resourceModeFlags & ApplyToTextMode)
- context->setTextDrawingMode(resourceMode == ApplyToFillMode ? TextModeFill : TextModeStroke);
}
RenderSVGResourceSolidColor* RenderSVGResource::sharedSolidPaintingResource()
« no previous file with comments | « Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698