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

Unified Diff: Source/WebCore/svg/animation/SMILTimeContainer.h

Issue 11229037: Merge 129670 - Refactor SMILTimeContainer to maintain animation information instead of recalculatin… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/svg/SVGAnimateMotionElement.cpp ('k') | Source/WebCore/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/svg/animation/SMILTimeContainer.h
===================================================================
--- Source/WebCore/svg/animation/SMILTimeContainer.h (revision 132107)
+++ Source/WebCore/svg/animation/SMILTimeContainer.h (working copy)
@@ -46,17 +46,19 @@
class SMILTimeContainer : public RefCounted<SMILTimeContainer> {
public:
- static PassRefPtr<SMILTimeContainer> create(SVGSVGElement* owner) { return adoptRef(new SMILTimeContainer(owner)); }
+ static PassRefPtr<SMILTimeContainer> create(SVGSVGElement* owner) { return adoptRef(new SMILTimeContainer(owner)); }
+ ~SMILTimeContainer();
- void schedule(SVGSMILElement*);
- void unschedule(SVGSMILElement*);
-
+ void schedule(SVGSMILElement*, SVGElement*, const QualifiedName&);
+ void unschedule(SVGSMILElement*, SVGElement*, const QualifiedName&);
+ void notifyIntervalsChanged();
+
SMILTime elapsed() const;
bool isActive() const;
bool isPaused() const;
bool isStarted() const;
-
+
void begin();
void pause();
void resume();
@@ -66,14 +68,14 @@
private:
SMILTimeContainer(SVGSVGElement* owner);
-
+
void timerFired(Timer<SMILTimeContainer>*);
void startTimer(SMILTime fireTime, SMILTime minimumDelay = 0);
void updateAnimations(SMILTime elapsed, bool seekToTime = false);
void updateDocumentOrderIndexes();
void sortByPriority(Vector<SVGSMILElement*>& smilElements, SMILTime elapsed);
-
+
double m_beginTime;
double m_pauseTime;
double m_accumulatedPauseTime;
@@ -83,10 +85,16 @@
Timer<SMILTimeContainer> m_timer;
- typedef HashSet<SVGSMILElement*> TimingElementSet;
- TimingElementSet m_scheduledAnimations;
+ typedef pair<SVGElement*, QualifiedName> ElementAttributePair;
+ typedef Vector<SVGSMILElement*> AnimationsVector;
+ typedef HashMap<ElementAttributePair, AnimationsVector* > GroupedAnimationsMap;
+ GroupedAnimationsMap m_scheduledAnimations;
SVGSVGElement* m_ownerSVGElement;
+
+#ifndef NDEBUG
+ bool m_preventScheduledAnimationsChanges;
+#endif
};
}
« no previous file with comments | « Source/WebCore/svg/SVGAnimateMotionElement.cpp ('k') | Source/WebCore/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698