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

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

Issue 571923002: Move geometry generation out of RenderSVGResource*::postApplyResource (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop curly braces. Created 6 years, 3 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/rendering/svg/SVGRenderingContext.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/SVGTextRunRenderingContext.cpp
diff --git a/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp b/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
index 2fd85e157e7d9f60f8d18bb46056d108fde37498..8082744d21d47bc43592c06e27e6e74ce95bd462 100644
--- a/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
+++ b/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
@@ -26,6 +26,7 @@
#include "core/rendering/RenderObject.h"
#include "core/rendering/svg/RenderSVGInlineText.h"
#include "core/rendering/svg/RenderSVGResourceSolidColor.h"
+#include "core/rendering/svg/SVGRenderSupport.h"
#include "core/svg/SVGFontData.h"
#include "core/svg/SVGFontElement.h"
#include "core/svg/SVGFontFaceElement.h"
@@ -164,7 +165,8 @@ void SVGTextRunRenderingContext::drawSVGGlyphs(GraphicsContext* context, const T
float strokeThickness = context->strokeThickness();
if (renderObject && renderObject->isSVGInlineText())
context->setStrokeThickness(strokeThickness * toRenderSVGInlineText(renderObject)->scalingFactor());
- activePaintingResource->postApplyResource(parentRenderObject, context, resourceMode, &glyphPath, 0);
+ SVGRenderSupport::fillOrStrokePath(context, resourceMode, glyphPath);
+ activePaintingResource->postApplyResource(parentRenderObject, context);
context->setStrokeThickness(strokeThickness);
}
« no previous file with comments | « Source/core/rendering/svg/SVGRenderingContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698