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

Unified Diff: Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp

Issue 13616008: Remove CG codepaths from SVG (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/WebCore/rendering/svg/RenderSVGResourceMasker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp b/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
index 4df4c22a900087f8030afb56e0129f5a807de7fa..c75f25ded1d920cea4812a4f19250f17e6c3de98 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
@@ -171,19 +171,10 @@ bool RenderSVGResourcePattern::applyResource(RenderObject* object, RenderStyle*
}
if (resourceMode & ApplyToTextMode) {
- if (resourceMode & ApplyToFillMode) {
+ if (resourceMode & ApplyToFillMode)
context->setTextDrawingMode(TextModeFill);
-
-#if USE(CG)
- context->applyFillPattern();
-#endif
- } else if (resourceMode & ApplyToStrokeMode) {
+ else if (resourceMode & ApplyToStrokeMode)
context->setTextDrawingMode(TextModeStroke);
-
-#if USE(CG)
- context->applyStrokePattern();
-#endif
- }
}
return true;
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698