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

Side by Side Diff: Source/core/svg/animation/SVGSMILElement.h

Issue 427613006: Add SVGTests attrs to SVGSMILElement to support SVGDiscardElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGAnimationElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 10 matching lines...) Expand all
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef SVGSMILElement_h 26 #ifndef SVGSMILElement_h
27 #define SVGSMILElement_h 27 #define SVGSMILElement_h
28 28
29 #include "core/SVGNames.h" 29 #include "core/SVGNames.h"
30 #include "core/svg/SVGElement.h" 30 #include "core/svg/SVGElement.h"
31 #include "core/svg/SVGTests.h"
31 #include "core/svg/animation/SMILTime.h" 32 #include "core/svg/animation/SMILTime.h"
32 #include "platform/heap/Heap.h" 33 #include "platform/heap/Heap.h"
33 #include "wtf/HashMap.h" 34 #include "wtf/HashMap.h"
34 35
35 namespace blink { 36 namespace blink {
36 37
37 class ConditionEventListener; 38 class ConditionEventListener;
38 class SMILTimeContainer; 39 class SMILTimeContainer;
39 class SVGSMILElement; 40 class SVGSMILElement;
40 41
41 template<typename T> class EventSender; 42 template<typename T> class EventSender;
42 typedef EventSender<SVGSMILElement> SMILEventSender; 43 typedef EventSender<SVGSMILElement> SMILEventSender;
43 44
44 // This class implements SMIL interval timing model as needed for SVG animation. 45 // This class implements SMIL interval timing model as needed for SVG animation.
45 class SVGSMILElement : public SVGElement { 46 class SVGSMILElement : public SVGElement, public SVGTests {
46 public: 47 public:
47 SVGSMILElement(const QualifiedName&, Document&); 48 SVGSMILElement(const QualifiedName&, Document&);
48 virtual ~SVGSMILElement(); 49 virtual ~SVGSMILElement();
49 50
50 bool isSupportedAttribute(const QualifiedName&); 51 bool isSupportedAttribute(const QualifiedName&);
51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 52 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
52 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 53 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 54 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
54 virtual void removedFrom(ContainerNode*) OVERRIDE; 55 virtual void removedFrom(ContainerNode*) OVERRIDE;
55 56
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 { 279 {
279 return element.hasTagName(SVGNames::setTag) || element.hasTagName(SVGNames:: animateTag) || element.hasTagName(SVGNames::animateMotionTag) 280 return element.hasTagName(SVGNames::setTag) || element.hasTagName(SVGNames:: animateTag) || element.hasTagName(SVGNames::animateMotionTag)
280 || element.hasTagName(SVGNames::animateTransformTag) || element.hasTagNa me((SVGNames::discardTag)); 281 || element.hasTagName(SVGNames::animateTransformTag) || element.hasTagNa me((SVGNames::discardTag));
281 } 282 }
282 283
283 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); 284 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement);
284 285
285 } 286 }
286 287
287 #endif // SVGSMILElement_h 288 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimationElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698