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

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

Issue 312503003: Convert SVGSMILElement::m_interval{Begin,End} into a SMILInterval (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « no previous file | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 FillMode fill() const; 80 FillMode fill() const;
81 81
82 SMILTime dur() const; 82 SMILTime dur() const;
83 SMILTime repeatDur() const; 83 SMILTime repeatDur() const;
84 SMILTime repeatCount() const; 84 SMILTime repeatCount() const;
85 SMILTime maxValue() const; 85 SMILTime maxValue() const;
86 SMILTime minValue() const; 86 SMILTime minValue() const;
87 87
88 SMILTime elapsed() const; 88 SMILTime elapsed() const;
89 89
90 SMILTime intervalBegin() const { return m_intervalBegin; } 90 SMILTime intervalBegin() const { return m_interval.begin; }
91 SMILTime previousIntervalBegin() const { return m_previousIntervalBegin; } 91 SMILTime previousIntervalBegin() const { return m_previousIntervalBegin; }
92 SMILTime simpleDuration() const; 92 SMILTime simpleDuration() const;
93 93
94 void seekToIntervalCorrespondingToTime(SMILTime elapsed); 94 void seekToIntervalCorrespondingToTime(SMILTime elapsed);
95 bool progress(SMILTime elapsed, SVGSMILElement* resultsElement, bool seekToT ime); 95 bool progress(SMILTime elapsed, SVGSMILElement* resultsElement, bool seekToT ime);
96 SMILTime nextProgressTime() const; 96 SMILTime nextProgressTime() const;
97 97
98 void reset(); 98 void reset();
99 99
100 static SMILTime parseClockValue(const String&); 100 static SMILTime parseClockValue(const String&);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 bool m_isWaitingForFirstInterval; 237 bool m_isWaitingForFirstInterval;
238 238
239 typedef WillBeHeapHashSet<RawPtrWillBeMember<SVGSMILElement> > TimeDependent Set; 239 typedef WillBeHeapHashSet<RawPtrWillBeMember<SVGSMILElement> > TimeDependent Set;
240 TimeDependentSet m_syncBaseDependents; 240 TimeDependentSet m_syncBaseDependents;
241 241
242 // Instance time lists 242 // Instance time lists
243 Vector<SMILTimeWithOrigin> m_beginTimes; 243 Vector<SMILTimeWithOrigin> m_beginTimes;
244 Vector<SMILTimeWithOrigin> m_endTimes; 244 Vector<SMILTimeWithOrigin> m_endTimes;
245 245
246 // This is the upcoming or current interval 246 // This is the upcoming or current interval
247 SMILTime m_intervalBegin; 247 SMILInterval m_interval;
248 SMILTime m_intervalEnd;
249 248
250 SMILTime m_previousIntervalBegin; 249 SMILTime m_previousIntervalBegin;
251 250
252 ActiveState m_activeState; 251 ActiveState m_activeState;
253 float m_lastPercent; 252 float m_lastPercent;
254 unsigned m_lastRepeat; 253 unsigned m_lastRepeat;
255 254
256 SMILTime m_nextProgressTime; 255 SMILTime m_nextProgressTime;
257 256
258 RefPtrWillBeMember<SMILTimeContainer> m_timeContainer; 257 RefPtrWillBeMember<SMILTimeContainer> m_timeContainer;
(...skipping 14 matching lines...) Expand all
273 { 272 {
274 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag) 273 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag)
275 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV GNames::discardTag)); 274 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV GNames::discardTag));
276 } 275 }
277 276
278 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); 277 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement);
279 278
280 } 279 }
281 280
282 #endif // SVGSMILElement_h 281 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698