Index: Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
diff --git a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
index fa70571456701d52e89f2c895e47aba83c4597aa..51f71d049119cb7942893f005fbecd0fd03f7c01 100644 |
--- a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
+++ b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
@@ -21,6 +21,7 @@ |
#include "core/rendering/svg/SVGTextMetricsBuilder.h" |
+#include "core/rendering/svg/RenderSVGInline.h" |
#include "core/rendering/svg/RenderSVGInlineText.h" |
#include "core/rendering/svg/RenderSVGText.h" |
#include "core/rendering/svg/SVGTextMetrics.h" |
@@ -234,7 +235,7 @@ static void measureTextRenderer(RenderSVGInlineText* text, MeasureTextData* data |
data->valueListPosition += textPosition - skippedCharacters; |
} |
-static void walkTree(RenderObject* start, RenderSVGInlineText* stopAtLeaf, MeasureTextData* data) |
+static void walkTree(RenderSVGText* start, RenderSVGInlineText* stopAtLeaf, MeasureTextData* data) |
{ |
RenderObject* child = start->firstChild(); |
while (child) { |
@@ -245,7 +246,7 @@ static void walkTree(RenderObject* start, RenderSVGInlineText* stopAtLeaf, Measu |
return; |
} else if (child->isSVGInline()) { |
// Visit children of text content elements. |
- if (RenderObject* inlineChild = child->firstChild()) { |
+ if (RenderObject* inlineChild = toRenderSVGInline(child)->firstChild()) { |
child = inlineChild; |
continue; |
} |