summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp')
-rw-r--r--Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp b/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
index a099f87..7d3f909 100644
--- a/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
+++ b/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
@@ -506,8 +506,12 @@ static inline void writeSVGInlineTextBox(TextStream& ts, SVGInlineTextBox* textB
static inline void writeSVGInlineTextBoxes(TextStream& ts, const RenderText& text, int indent)
{
- for (InlineTextBox* box = text.firstTextBox(); box; box = box->nextTextBox())
+ for (InlineTextBox* box = text.firstTextBox(); box; box = box->nextTextBox()) {
+ if (!box->isSVGInlineTextBox())
+ continue;
+
writeSVGInlineTextBox(ts, static_cast<SVGInlineTextBox*>(box), indent);
+ }
}
static void writeStandardPrefix(TextStream& ts, const RenderObject& object, int indent)