Chromium Code Reviews

Unified Diff: Source/core/rendering/svg/RenderSVGTextPath.cpp

Issue 145493012: <br> nodes should not be allowed within SVG text (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload ps#3. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/rendering/svg/RenderSVGText.cpp ('k') | Source/core/rendering/svg/SVGRenderSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGTextPath.cpp
diff --git a/Source/core/rendering/svg/RenderSVGTextPath.cpp b/Source/core/rendering/svg/RenderSVGTextPath.cpp
index e5b65631cb6cd5720162ca34c6e4d34cfaf08c0a..26d2055777ad9c8f2bef86d6c04f19089e4c1330 100644
--- a/Source/core/rendering/svg/RenderSVGTextPath.cpp
+++ b/Source/core/rendering/svg/RenderSVGTextPath.cpp
@@ -37,7 +37,7 @@ RenderSVGTextPath::RenderSVGTextPath(Element* element)
bool RenderSVGTextPath::isChildAllowed(RenderObject* child, RenderStyle*) const
{
if (child->isText())
- return !SVGRenderSupport::isEmptySVGInlineText(child);
+ return SVGRenderSupport::isRenderableTextNode(child);
#if ENABLE(SVG_FONTS)
// 'altGlyph' is supported by the content model for 'textPath', but...
« no previous file with comments | « Source/core/rendering/svg/RenderSVGText.cpp ('k') | Source/core/rendering/svg/SVGRenderSupport.h » ('j') | no next file with comments »

Powered by Google App Engine