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 b35a859b92e53ede32da378a9df743f1f80c6e92..f746385496ae0a2289962a75afd1548e35181379 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
@@ -177,10 +177,8 @@ void SVGTextLayoutEngine::beginTextPathLayout(SVGInlineFlowBox* flowBox) |
if (path.isEmpty()) |
return; |
m_textPathCalculator = new Path::PositionCalculator(path); |
- m_textPathStartOffset = textPath->startOffset(); |
m_textPathLength = path.length(); |
- if (m_textPathStartOffset > 0 && m_textPathStartOffset <= 1) |
- m_textPathStartOffset *= m_textPathLength; |
+ m_textPathStartOffset = textPath->calculateStartOffset(m_textPathLength); |
SVGTextPathChunkBuilder textPathChunkLayoutBuilder; |
textPathChunkLayoutBuilder.processTextChunks(lineLayout.m_lineLayoutBoxes); |