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

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

Issue 14160005: Track the region where text is painted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase with TOT 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
Index: Source/core/rendering/svg/SVGInlineTextBox.cpp
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp
index 7864d4ee8a2d010795e04070860d57b86d83d4bf..84e5a6c0e4a9fbdb529c779071e5f1c1f13f03f4 100644
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp
@@ -618,7 +618,7 @@ void SVGInlineTextBox::paintTextWithShadows(GraphicsContext* context, RenderStyl
context->save();
context->scale(FloatSize(1 / scalingFactor, 1 / scalingFactor));
- scaledFont.drawText(context, textRun, textOrigin + extraOffset, startPosition, endPosition);
+ scaledFont.drawText(context, textRun, textOrigin + extraOffset, FloatRect(textOrigin, textSize), startPosition, endPosition);
context->restore();

Powered by Google App Engine
This is Rietveld 408576698