Index: Source/core/svg/SVGStopElement.cpp |
diff --git a/Source/core/svg/SVGStopElement.cpp b/Source/core/svg/SVGStopElement.cpp |
index 158ba3f1024def854900f54bb88eca5dfa4b8194..a2948881a6129117fb5b721d0819c53a9444fdea 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()); |
esprehn
2014/06/17 23:09:40
remove parens
|
} |
Color SVGStopElement::stopColorIncludingOpacity() const |