Index: Source/core/rendering/svg/SVGRenderSupport.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderSupport.cpp b/Source/core/rendering/svg/SVGRenderSupport.cpp |
index 276573c23b9366eefce184b02703e166c10f2b53..a9676a093495c0b391bad1e3da6226861e880428 100644 |
--- a/Source/core/rendering/svg/SVGRenderSupport.cpp |
+++ b/Source/core/rendering/svg/SVGRenderSupport.cpp |
@@ -411,4 +411,11 @@ bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object) |
return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyText(); |
} |
+bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) |
+{ |
+ ASSERT(object->isText()); |
+ // <br> is marked as text, but is not handled by the SVG rendering code-path. |
+ return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmptyText(); |
+} |
+ |
} |