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

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

Issue 148343003: Tighten up the allowable-child criteria in RenderSVGInline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « LayoutTests/svg/text/nonconformant-content-crash-2-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGInline.cpp
diff --git a/Source/core/rendering/svg/RenderSVGInline.cpp b/Source/core/rendering/svg/RenderSVGInline.cpp
index 6707906d526aef2cdee9e5ff1d97fcdabd4e6a78..51d884076255eb29491d563b09d896bdf9befaf1 100644
--- a/Source/core/rendering/svg/RenderSVGInline.cpp
+++ b/Source/core/rendering/svg/RenderSVGInline.cpp
@@ -41,6 +41,10 @@ bool RenderSVGInline::isChildAllowed(RenderObject* child, RenderStyle* style) co
if (child->node()->hasTagName(SVGNames::aTag))
return false;
}
+
+ if (!child->isSVGInline() && !child->isSVGInlineText())
+ return false;
+
return RenderInline::isChildAllowed(child, style);
}
« no previous file with comments | « LayoutTests/svg/text/nonconformant-content-crash-2-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698