Chromium Code Reviews| Index: Source/core/svg/SVGAnimateElement.h |
| diff --git a/Source/core/svg/SVGAnimateElement.h b/Source/core/svg/SVGAnimateElement.h |
| index d9873744a7c09e540994213809c696a7780b2616..a99c42e607b0427f042455a52df418ce581feb90 100644 |
| --- a/Source/core/svg/SVGAnimateElement.h |
| +++ b/Source/core/svg/SVGAnimateElement.h |
| @@ -23,6 +23,7 @@ |
| #ifndef SVGAnimateElement_h |
| #define SVGAnimateElement_h |
| +#include "SVGNames.h" |
| #include "core/svg/SVGAnimationElement.h" |
| #include "wtf/OwnPtr.h" |
| @@ -73,6 +74,12 @@ private: |
| OwnPtr<SVGAnimatedTypeAnimator> m_animator; |
| }; |
| +inline SVGAnimateElement* toSVGAnimateElement(Element* element) |
| +{ |
| + ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::animateTag)); |
|
tkent
2013/08/18 22:18:44
This is wrong. We can cast elements with animateC
|
| + return static_cast<SVGAnimateElement*>(element); |
| +} |
| + |
| } // namespace WebCore |
| #endif // SVGAnimateElement_h |