Index: Source/core/svg/SVGStopElement.h |
diff --git a/Source/core/svg/SVGStopElement.h b/Source/core/svg/SVGStopElement.h |
index 025e57dc3acb98b5c6bb1afaff03602ceafe3286..a0feb0dba767b14d9e4b965962a50db6f990b44c 100644 |
--- a/Source/core/svg/SVGStopElement.h |
+++ b/Source/core/svg/SVGStopElement.h |
@@ -52,16 +52,10 @@ private: |
inline SVGStopElement* toSVGStopElement(Node* node) |
{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::stopTag)); |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::stopTag) || toSVGElement(node)->isGradientStop()); |
tkent
2013/08/20 08:41:52
Either of hasTagName() or isGradientStop() should
|
return static_cast<SVGStopElement*>(node); |
} |
-inline SVGStopElement* toSVGStopElement(SVGElement* element) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isGradientStop()); |
- return static_cast<SVGStopElement*>(element); |
-} |
- |
} // namespace WebCore |
#endif |