Index: Source/core/rendering/svg/RenderSVGText.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGText.cpp b/Source/core/rendering/svg/RenderSVGText.cpp |
index 947546a6cf3713044b34c24bc010b71dba0ccbe8..64a309d2525eea02220a641de09e98d14dbb2264 100644 |
--- a/Source/core/rendering/svg/RenderSVGText.cpp |
+++ b/Source/core/rendering/svg/RenderSVGText.cpp |
@@ -33,6 +33,7 @@ |
#include "core/rendering/LayoutRepainter.h" |
#include "core/rendering/PointerEventsHitRules.h" |
#include "core/rendering/style/ShadowList.h" |
+#include "core/rendering/svg/RenderSVGInline.h" |
#include "core/rendering/svg/RenderSVGInlineText.h" |
#include "core/rendering/svg/RenderSVGResource.h" |
#include "core/rendering/svg/RenderSVGRoot.h" |
@@ -107,7 +108,7 @@ static inline void collectLayoutAttributes(RenderObject* text, Vector<SVGTextLay |
} |
} |
-static inline bool findPreviousAndNextAttributes(RenderObject* root, RenderSVGInlineText* locateElement, SVGTextLayoutAttributes*& previous, SVGTextLayoutAttributes*& next) |
+static inline bool findPreviousAndNextAttributes(RenderSVGText* root, RenderSVGInlineText* locateElement, SVGTextLayoutAttributes*& previous, SVGTextLayoutAttributes*& next) |
{ |
ASSERT(root); |
ASSERT(locateElement); |
@@ -128,7 +129,7 @@ static inline bool findPreviousAndNextAttributes(RenderObject* root, RenderSVGIn |
} |
} else if (current->isSVGInline()) { |
// Descend into text content (if possible). |
- if (RenderObject* child = current->firstChild()) { |
+ if (RenderObject* child = toRenderSVGInline(current)->firstChild()) { |
current = child; |
continue; |
} |