Index: Source/core/rendering/svg/SVGRootInlineBox.cpp |
diff --git a/Source/core/rendering/svg/SVGRootInlineBox.cpp b/Source/core/rendering/svg/SVGRootInlineBox.cpp |
index 55c078d4b215c3e5f7071c2af1fd86f991a6f41f..07c3231db06c0fe9b8f8cff80f0ae2ff71c49080 100644 |
--- a/Source/core/rendering/svg/SVGRootInlineBox.cpp |
+++ b/Source/core/rendering/svg/SVGRootInlineBox.cpp |
@@ -24,6 +24,7 @@ |
#include "config.h" |
#include "core/rendering/svg/SVGRootInlineBox.h" |
+#include "core/paint/SVGInlineTextBoxPainter.h" |
#include "core/rendering/svg/RenderSVGInlineText.h" |
#include "core/rendering/svg/RenderSVGText.h" |
#include "core/rendering/svg/SVGInlineFlowBox.h" |
@@ -43,7 +44,7 @@ void SVGRootInlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffse |
if (hasSelection) { |
for (InlineBox* child = firstChild(); child; child = child->nextOnLine()) { |
if (child->isSVGInlineTextBox()) |
- toSVGInlineTextBox(child)->paintSelectionBackground(childPaintInfo); |
+ SVGInlineTextBoxPainter(*toSVGInlineTextBox(child)).paintSelectionBackground(childPaintInfo); |
else if (child->isSVGInlineFlowBox()) |
toSVGInlineFlowBox(child)->paintSelectionBackground(childPaintInfo); |
} |