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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/SVGViewElement.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 24 matching lines...) Expand all
35 class ConditionEventListener; 35 class ConditionEventListener;
36 class SMILTimeContainer; 36 class SMILTimeContainer;
37 class SVGSMILElement; 37 class SVGSMILElement;
38 38
39 template<typename T> class EventSender; 39 template<typename T> class EventSender;
40 typedef EventSender<SVGSMILElement> SMILEventSender; 40 typedef EventSender<SVGSMILElement> SMILEventSender;
41 41
42 // This class implements SMIL interval timing model as needed for SVG animation. 42 // This class implements SMIL interval timing model as needed for SVG animation.
43 class SVGSMILElement : public SVGElement { 43 class SVGSMILElement : public SVGElement {
44 public: 44 public:
45 SVGSMILElement(const QualifiedName&, Document*); 45 SVGSMILElement(const QualifiedName&, Document&);
46 virtual ~SVGSMILElement(); 46 virtual ~SVGSMILElement();
47 47
48 static bool isSMILElement(Node*); 48 static bool isSMILElement(Node*);
49 49
50 bool isSupportedAttribute(const QualifiedName&); 50 bool isSupportedAttribute(const QualifiedName&);
51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
52 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 52 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
54 virtual void removedFrom(ContainerNode*) OVERRIDE; 54 virtual void removedFrom(ContainerNode*) OVERRIDE;
55 55
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 inline SVGSMILElement* toSVGSMILElement(Element* element) 246 inline SVGSMILElement* toSVGSMILElement(Element* element)
247 { 247 {
248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e lement)); 248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e lement));
249 return static_cast<SVGSMILElement*>(element); 249 return static_cast<SVGSMILElement*>(element);
250 } 250 }
251 251
252 } 252 }
253 253
254 #endif // SVGSMILElement_h 254 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGViewElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698