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

Unified Diff: Source/core/layout/svg/LayoutSVGRoot.cpp

Issue 1009923002: Don't allow <stop> as layout tree child of <svg> or <g> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Content model tests for linear/radialGradient. Created 5 years, 9 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 | « Source/core/layout/svg/LayoutSVGModelObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGRoot.cpp
diff --git a/Source/core/layout/svg/LayoutSVGRoot.cpp b/Source/core/layout/svg/LayoutSVGRoot.cpp
index 996c83d646b3730441c91001dc7cd02f8639ea1a..9b88e7694f64c342b506bcd460b81a3c1bf5a6a4 100644
--- a/Source/core/layout/svg/LayoutSVGRoot.cpp
+++ b/Source/core/layout/svg/LayoutSVGRoot.cpp
@@ -236,7 +236,7 @@ void LayoutSVGRoot::styleDidChange(StyleDifference diff, const LayoutStyle* oldS
bool LayoutSVGRoot::isChildAllowed(LayoutObject* child, const LayoutStyle&) const
{
- return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText());
+ return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText() || child->isSVGGradientStop());
}
void LayoutSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild)
« no previous file with comments | « Source/core/layout/svg/LayoutSVGModelObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698