| Index: Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| diff --git a/Source/core/layout/svg/SVGTextLayoutEngine.cpp b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| index 737f7e4b4cb194e242dfc3b773fca929678c9be0..a32b06d4e0cab87f189232922b02b51384a527ed 100644
|
| --- a/Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| +++ b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| @@ -427,8 +427,6 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox* textBox, cons
|
| if (m_inPathLayout && !m_textPathCalculator)
|
| return;
|
|
|
| - SVGElement* lengthContext = toSVGElement(text.parent()->node());
|
| -
|
| LayoutObject* textParent = text.parent();
|
| bool definesTextLength = textParent ? parentDefinesTextLength(textParent) : false;
|
|
|
| @@ -449,7 +447,7 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox* textBox, cons
|
| bool applySpacingToNextCharacter = false;
|
|
|
| float lastAngle = 0;
|
| - float baselineShift = baselineLayout.calculateBaselineShift(svgStyle, lengthContext);
|
| + float baselineShift = baselineLayout.calculateBaselineShift(style);
|
| baselineShift -= baselineLayout.calculateAlignmentBaselineShift(m_isVerticalText, &text);
|
|
|
| // Main layout algorithm.
|
|
|