Index: Source/core/svg/SVGStopElement.cpp |
diff --git a/Source/core/svg/SVGStopElement.cpp b/Source/core/svg/SVGStopElement.cpp |
index 158ba3f1024def854900f54bb88eca5dfa4b8194..5883e4882bd50ed68f54327d430e8dd6ef9e24b9 100644 |
--- a/Source/core/svg/SVGStopElement.cpp |
+++ b/Source/core/svg/SVGStopElement.cpp |
@@ -90,7 +90,7 @@ RenderObject* SVGStopElement::createRenderer(RenderStyle*) |
bool SVGStopElement::rendererIsNeeded(const RenderStyle&) |
{ |
- return true; |
+ return parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElement() && isValid(); |
pdr.
2014/06/19 21:33:48
Do we need the same in SVGMarkerElement?
Do we ne
|
} |
Color SVGStopElement::stopColorIncludingOpacity() const |