Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1707)

Unified Diff: Source/core/svg/SVGAnimateElement.h

Issue 106023002: Generate toSVGAnimateElement to support more plenty helper functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimateElement.h
diff --git a/Source/core/svg/SVGAnimateElement.h b/Source/core/svg/SVGAnimateElement.h
index 592613c691ceecd1b67528ae90957374a0cb6b8b..e8b2dc438ab235dfbf2313b5f4d3a77dd3cfbfdf 100644
--- a/Source/core/svg/SVGAnimateElement.h
+++ b/Source/core/svg/SVGAnimateElement.h
@@ -75,16 +75,16 @@ private:
OwnPtr<SVGAnimatedTypeAnimator> m_animator;
};
-inline SVGAnimateElement* toSVGAnimateElement(Element* element)
+inline bool isSVGAnimateElement(const Node& node)
{
- ASSERT_WITH_SECURITY_IMPLICATION(!element
- || element->hasTagName(SVGNames::animateTag)
- || element->hasTagName(SVGNames::animateColorTag)
- || element->hasTagName(SVGNames::animateTransformTag)
- || element->hasTagName(SVGNames::setTag));
- return static_cast<SVGAnimateElement*>(element);
+ return node.hasTagName(SVGNames::animateTag)
+ || node.hasTagName(SVGNames::animateColorTag)
+ || node.hasTagName(SVGNames::animateTransformTag)
+ || node.hasTagName(SVGNames::setTag);
}
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement);
+
} // namespace WebCore
#endif // SVGAnimateElement_h
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698