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

Unified Diff: Source/core/layout/svg/LayoutSVGModelObject.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: 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
Index: Source/core/layout/svg/LayoutSVGModelObject.cpp
diff --git a/Source/core/layout/svg/LayoutSVGModelObject.cpp b/Source/core/layout/svg/LayoutSVGModelObject.cpp
index ab77767f89df9f5c46a0110dcb58543c193bc34a..671ac13f9d0557d9182a61c03278048b850c9d44 100644
--- a/Source/core/layout/svg/LayoutSVGModelObject.cpp
+++ b/Source/core/layout/svg/LayoutSVGModelObject.cpp
@@ -48,7 +48,7 @@ LayoutSVGModelObject::LayoutSVGModelObject(SVGElement* node)
bool LayoutSVGModelObject::isChildAllowed(LayoutObject* child, const LayoutStyle&) const
{
- return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText());
+ return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText() || child->isSVGGradientStop());
}
LayoutRect LayoutSVGModelObject::clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationState) const

Powered by Google App Engine
This is Rietveld 408576698