| Index: Source/core/svg/SVGStopElement.h
|
| diff --git a/Source/core/svg/SVGStopElement.h b/Source/core/svg/SVGStopElement.h
|
| index 025e57dc3acb98b5c6bb1afaff03602ceafe3286..828c7f7615eaf5300d1d67a581211f375b041a95 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 || toSVGElement(node)->isGradientStop());
|
| 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
|
|
|