| Index: Source/core/rendering/svg/SVGTextLayoutEngine.cpp
|
| diff --git a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp
|
| index 7254790fb7f84c9ad7bd12376dc32b04f75cebb2..f74577aa4d22f6c8235d179d2ba714baeae16028 100644
|
| --- a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp
|
| +++ b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp
|
| @@ -240,18 +240,17 @@ void SVGTextLayoutEngine::layoutInlineTextBox(SVGInlineTextBox* textBox)
|
| {
|
| ASSERT(textBox);
|
|
|
| - RenderSVGInlineText* text = toRenderSVGInlineText(textBox->textRenderer());
|
| - ASSERT(text);
|
| - ASSERT(text->parent());
|
| - ASSERT(text->parent()->node());
|
| - ASSERT(text->parent()->node()->isSVGElement());
|
| + RenderSVGInlineText& text = toRenderSVGInlineText(textBox->textRenderer());
|
| + ASSERT(text.parent());
|
| + ASSERT(text.parent()->node());
|
| + ASSERT(text.parent()->node()->isSVGElement());
|
|
|
| - const RenderStyle* style = text->style();
|
| + const RenderStyle* style = text.style();
|
| ASSERT(style);
|
|
|
| textBox->clearTextFragments();
|
| m_isVerticalText = style->svgStyle()->isVerticalWritingMode();
|
| - layoutTextOnLineOrPath(textBox, text, style);
|
| + layoutTextOnLineOrPath(textBox, &text, style);
|
|
|
| if (m_inPathLayout) {
|
| m_pathLayoutBoxes.append(textBox);
|
|
|