| Index: Source/core/layout/svg/SVGTextChunkBuilder.cpp
|
| diff --git a/Source/core/layout/svg/SVGTextChunkBuilder.cpp b/Source/core/layout/svg/SVGTextChunkBuilder.cpp
|
| index 45770d0fbbb1f20b599a45c912c445146f1d906c..8bc314b1efd60d50bfcb9b8c3bc145ee0fa27c7c 100644
|
| --- a/Source/core/layout/svg/SVGTextChunkBuilder.cpp
|
| +++ b/Source/core/layout/svg/SVGTextChunkBuilder.cpp
|
| @@ -87,16 +87,15 @@ void SVGTextChunkBuilder::addTextChunk(Vector<SVGInlineTextBox*>& lineLayoutBoxe
|
|
|
| RenderSVGInlineText& textRenderer = toRenderSVGInlineText(textBox->renderer());
|
|
|
| - const LayoutStyle* style = toRenderSVGInlineText(textBox->renderer()).style();
|
| - ASSERT(style);
|
| + const LayoutStyle& style = toRenderSVGInlineText(textBox->renderer()).styleRef();
|
|
|
| - const SVGLayoutStyle& svgStyle = style->svgStyle();
|
| + const SVGLayoutStyle& svgStyle = style.svgStyle();
|
|
|
| // Build chunk style flags.
|
| unsigned chunkStyle = SVGTextChunk::DefaultStyle;
|
|
|
| // Handle 'direction' property.
|
| - if (!style->isLeftToRightDirection())
|
| + if (!style.isLeftToRightDirection())
|
| chunkStyle |= SVGTextChunk::RightToLeftText;
|
|
|
| // Handle 'writing-mode' property.
|
|
|