Index: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
index 68f4a4c01b3c5900252872c90f3b7cb25a06bf9e..895438085f75f7273e11705b6d8045c4055a4bea 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
@@ -114,7 +114,7 @@ void SVGTextLayoutEngine::updateRelativePositionAdjustmentsIfNeeded(float dx, fl |
static void computeGlyphOverflow(SVGInlineTextBox* textBox, SVGTextFragment& textFragment) |
{ |
LineLayoutSVGInlineText textLineLayout = LineLayoutSVGInlineText(textBox->getLineLayoutItem()); |
- TextRun run = SVGTextMetrics::constructTextRun(textLineLayout, textFragment.characterOffset, textFragment.length, textLineLayout.styleRef().direction()); |
+ TextRun run = textBox->constructTextRun(textLineLayout.styleRef(), textFragment); |
float scalingFactor = textLineLayout.scalingFactor(); |
ASSERT(scalingFactor); |