Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1714)

Unified Diff: Source/core/rendering/svg/RenderSVGInline.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/svg/RenderSVGInline.cpp
diff --git a/Source/core/rendering/svg/RenderSVGInline.cpp b/Source/core/rendering/svg/RenderSVGInline.cpp
index 51d884076255eb29491d563b09d896bdf9befaf1..64f6b4d66accd8193cc09e9e46557f9f35ff74c9 100644
--- a/Source/core/rendering/svg/RenderSVGInline.cpp
+++ b/Source/core/rendering/svg/RenderSVGInline.cpp
@@ -33,8 +33,8 @@ namespace WebCore {
bool RenderSVGInline::isChildAllowed(RenderObject* child, RenderStyle* style) const
{
- if (SVGRenderSupport::isEmptySVGInlineText(child))
- return false;
+ if (child->isText())
+ return SVGRenderSupport::isRenderableTextNode(child);
if (node()->hasTagName(SVGNames::aTag)) {
// Disallow direct descendant 'a'.
« no previous file with comments | « LayoutTests/svg/text/nonconformant-content-crash-3-expected.txt ('k') | Source/core/rendering/svg/RenderSVGTSpan.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698