Index: Source/core/rendering/svg/SVGTextQuery.cpp |
diff --git a/Source/core/rendering/svg/SVGTextQuery.cpp b/Source/core/rendering/svg/SVGTextQuery.cpp |
index 464503c8e2b193b45452fc4dd7af4ffe408263f3..d73c2d1ec5c67f1817e54aade8c4e7c61c3924b9 100644 |
--- a/Source/core/rendering/svg/SVGTextQuery.cpp |
+++ b/Source/core/rendering/svg/SVGTextQuery.cpp |
@@ -90,7 +90,7 @@ void SVGTextQuery::collectTextBoxesInFlowBox(InlineFlowBox* flowBox) |
for (InlineBox* child = flowBox->firstChild(); child; child = child->nextOnLine()) { |
if (child->isInlineFlowBox()) { |
// Skip generated content. |
- if (!child->renderer()->node()) |
+ if (!child->renderer().node()) |
continue; |
collectTextBoxesInFlowBox(toInlineFlowBox(child)); |
@@ -112,8 +112,7 @@ bool SVGTextQuery::executeQuery(Data* queryData, ProcessTextFragmentCallback fra |
// Loop over all text boxes |
for (unsigned textBoxPosition = 0; textBoxPosition < textBoxCount; ++textBoxPosition) { |
queryData->textBox = m_textBoxes.at(textBoxPosition); |
- queryData->textRenderer = toRenderSVGInlineText(queryData->textBox->textRenderer()); |
- ASSERT(queryData->textRenderer); |
+ queryData->textRenderer = &toRenderSVGInlineText(queryData->textBox->textRenderer()); |
ASSERT(queryData->textRenderer->style()); |
ASSERT(queryData->textRenderer->style()->svgStyle()); |