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 49254562c2c67009f021befedf854379a8179d49..0176f2033f1d18f8fe3f7a3a145be76244992c3c 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp |
@@ -523,13 +523,10 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox* textBox, Line |
if (m_isVerticalText) |
m_currentTextFragment.transform.rotate(90); |
+ m_currentTextFragment.isVertical = m_isVerticalText; |
m_currentTextFragment.isTextOnPath = m_inPathLayout && m_textPathScaling != 1; |
- if (m_currentTextFragment.isTextOnPath) { |
- if (m_isVerticalText) |
- m_currentTextFragment.lengthAdjustTransform.scaleNonUniform(1, m_textPathScaling); |
- else |
- m_currentTextFragment.lengthAdjustTransform.scaleNonUniform(m_textPathScaling, 1); |
- } |
+ if (m_currentTextFragment.isTextOnPath) |
+ m_currentTextFragment.lengthAdjustScale = m_textPathScaling; |
} |
// Update current text position, after processing of the current character finished. |