| Index: Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| diff --git a/Source/core/layout/svg/SVGTextLayoutEngine.cpp b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| index 78e54e99ed586bda62b638fad622c35ba6bba4b0..99fd53aa177abd54869d51546ffecbd307822dd3 100644
|
| --- a/Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| +++ b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
|
| @@ -245,12 +245,11 @@ void SVGTextLayoutEngine::layoutInlineTextBox(SVGInlineTextBox* textBox)
|
| ASSERT(text.parent()->node());
|
| ASSERT(text.parent()->node()->isSVGElement());
|
|
|
| - const LayoutStyle* style = text.style();
|
| - ASSERT(style);
|
| + const LayoutStyle& style = text.styleRef();
|
|
|
| textBox->clearTextFragments();
|
| - m_isVerticalText = style->svgStyle().isVerticalWritingMode();
|
| - layoutTextOnLineOrPath(textBox, text, *style);
|
| + m_isVerticalText = style.svgStyle().isVerticalWritingMode();
|
| + layoutTextOnLineOrPath(textBox, text, style);
|
|
|
| if (m_inPathLayout) {
|
| m_pathLayoutBoxes.append(textBox);
|
|
|