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

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

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 Type type() const { return m_type; } 194 Type type() const { return m_type; }
195 BeginOrEnd beginOrEnd() const { return m_beginOrEnd; } 195 BeginOrEnd beginOrEnd() const { return m_beginOrEnd; }
196 String baseID() const { return m_baseID; } 196 String baseID() const { return m_baseID; }
197 String name() const { return m_name; } 197 String name() const { return m_name; }
198 SMILTime offset() const { return m_offset; } 198 SMILTime offset() const { return m_offset; }
199 int repeat() const { return m_repeat; } 199 int repeat() const { return m_repeat; }
200 SVGSMILElement* syncBase() const { return m_syncBase.get(); } 200 SVGSMILElement* syncBase() const { return m_syncBase.get(); }
201 void setSyncBase(SVGSMILElement* element) { m_syncBase = element; } 201 void setSyncBase(SVGSMILElement* element) { m_syncBase = element; }
202 ConditionEventListener* eventListener() const { return m_eventListener.g et(); } 202 ConditionEventListener* eventListener() const { return m_eventListener.g et(); }
203 void setEventListener(PassRefPtr<ConditionEventListener>); 203 void setEventListener(PassRefPtrWillBeRawPtr<ConditionEventListener>);
204 204
205 private: 205 private:
206 Type m_type; 206 Type m_type;
207 BeginOrEnd m_beginOrEnd; 207 BeginOrEnd m_beginOrEnd;
208 String m_baseID; 208 String m_baseID;
209 String m_name; 209 String m_name;
210 SMILTime m_offset; 210 SMILTime m_offset;
211 int m_repeat; 211 int m_repeat;
212 RefPtrWillBeMember<SVGSMILElement> m_syncBase; 212 RefPtrWillBeMember<SVGSMILElement> m_syncBase;
213 RefPtr<ConditionEventListener> m_eventListener; 213 RefPtrWillBeMember<ConditionEventListener> m_eventListener;
214 }; 214 };
215 bool parseCondition(const String&, BeginOrEnd beginOrEnd); 215 bool parseCondition(const String&, BeginOrEnd beginOrEnd);
216 void parseBeginOrEnd(const String&, BeginOrEnd beginOrEnd); 216 void parseBeginOrEnd(const String&, BeginOrEnd beginOrEnd);
217 SVGElement* eventBaseFor(const Condition&); 217 SVGElement* eventBaseFor(const Condition&);
218 218
219 void disconnectSyncBaseConditions(); 219 void disconnectSyncBaseConditions();
220 void disconnectEventBaseConditions(); 220 void disconnectEventBaseConditions();
221 221
222 // Event base timing 222 // Event base timing
223 void handleConditionEvent(Event*, Condition*); 223 void handleConditionEvent(Event*, Condition*);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 { 284 {
285 return element.hasTagName(SVGNames::setTag) || element.hasTagName(SVGNames:: animateTag) || element.hasTagName(SVGNames::animateMotionTag) 285 return element.hasTagName(SVGNames::setTag) || element.hasTagName(SVGNames:: animateTag) || element.hasTagName(SVGNames::animateMotionTag)
286 || element.hasTagName(SVGNames::animateTransformTag) || element.hasTagNa me((SVGNames::discardTag)); 286 || element.hasTagName(SVGNames::animateTransformTag) || element.hasTagNa me((SVGNames::discardTag));
287 } 287 }
288 288
289 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); 289 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement);
290 290
291 } 291 }
292 292
293 #endif // SVGSMILElement_h 293 #endif // SVGSMILElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698