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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 OwnPtr<SVGAnimatedType> m_fromType; 69 OwnPtr<SVGAnimatedType> m_fromType;
70 OwnPtr<SVGAnimatedType> m_toType; 70 OwnPtr<SVGAnimatedType> m_toType;
71 OwnPtr<SVGAnimatedType> m_toAtEndOfDurationType; 71 OwnPtr<SVGAnimatedType> m_toAtEndOfDurationType;
72 OwnPtr<SVGAnimatedType> m_animatedType; 72 OwnPtr<SVGAnimatedType> m_animatedType;
73 73
74 SVGElementAnimatedPropertyList m_animatedProperties; 74 SVGElementAnimatedPropertyList m_animatedProperties;
75 OwnPtr<SVGAnimatedTypeAnimator> m_animator; 75 OwnPtr<SVGAnimatedTypeAnimator> m_animator;
76 }; 76 };
77 77
78 inline SVGAnimateElement* toSVGAnimateElement(Element* element) 78 inline bool isSVGAnimateElement(const Node& node)
79 { 79 {
80 ASSERT_WITH_SECURITY_IMPLICATION(!element 80 return node.hasTagName(SVGNames::animateTag)
81 || element->hasTagName(SVGNames::animateTag) 81 || node.hasTagName(SVGNames::animateColorTag)
82 || element->hasTagName(SVGNames::animateColorTag) 82 || node.hasTagName(SVGNames::animateTransformTag)
83 || element->hasTagName(SVGNames::animateTransformTag) 83 || node.hasTagName(SVGNames::setTag);
84 || element->hasTagName(SVGNames::setTag));
85 return static_cast<SVGAnimateElement*>(element);
86 } 84 }
87 85
86 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement);
87
88 } // namespace WebCore 88 } // namespace WebCore
89 89
90 #endif // SVGAnimateElement_h 90 #endif // SVGAnimateElement_h
OLDNEW
« 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