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

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

Issue 630903003: Move common GC state update code out of paint-server application (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
Index: Source/core/rendering/svg/SVGInlineTextBox.cpp
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp
index 07c1c3191a7b7042e57585162d5f6a9a9273129d..966870440baf245abb69621732b07888fce7a748 100644
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp
@@ -550,6 +550,7 @@ void SVGInlineTextBox::paintDecorationWithStyle(GraphicsContext* context, TextDe
PaintingResourceScope resourceScope(*decorationRenderer);
if (resourceScope.acquirePaintingResource(context, decorationStyle, resourceMode)) {
+ SVGRenderSupport::updateGraphicsContext(context, decorationStyle, *decorationRenderer, resourceMode);
SVGRenderSupport::fillOrStrokePath(context, resourceMode, path);
resourceScope.releasePaintingResource(context);
}
@@ -585,6 +586,8 @@ void SVGInlineTextBox::paintTextWithShadows(GraphicsContext* context, RenderStyl
PaintingResourceScope resourceScope(parent()->renderer());
if (resourceScope.acquirePaintingResource(context, style, resourceMode)) {
+ SVGRenderSupport::updateGraphicsContext(context, style, parent()->renderer(), resourceMode);
+
if (scalingFactor != 1 && resourceMode & ApplyToStrokeMode)
context->setStrokeThickness(context->strokeThickness() * scalingFactor);

Powered by Google App Engine
This is Rietveld 408576698