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

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

Issue 137443012: [SVG] Apply animations in sorted order based on begin time and document order (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaselined and worked on review comments Created 6 years, 11 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/svg/animation/SMILTimeContainer.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void setDocumentOrderIndexesDirty() { m_documentOrderIndexesDirty = true; } 64 void setDocumentOrderIndexesDirty() { m_documentOrderIndexesDirty = true; }
65 65
66 private: 66 private:
67 SMILTimeContainer(SVGSVGElement* owner); 67 SMILTimeContainer(SVGSVGElement* owner);
68 68
69 void timerFired(Timer<SMILTimeContainer>*); 69 void timerFired(Timer<SMILTimeContainer>*);
70 void startTimer(SMILTime fireTime, SMILTime minimumDelay = 0); 70 void startTimer(SMILTime fireTime, SMILTime minimumDelay = 0);
71 void updateAnimations(SMILTime elapsed, bool seekToTime = false); 71 void updateAnimations(SMILTime elapsed, bool seekToTime = false);
72 72
73 void updateDocumentOrderIndexes(); 73 void updateDocumentOrderIndexes();
74 void sortByPriority(Vector<SVGSMILElement*>& smilElements, SMILTime elapsed) ;
75 double lastResumeTime() const { return m_resumeTime ? m_resumeTime : m_begin Time; } 74 double lastResumeTime() const { return m_resumeTime ? m_resumeTime : m_begin Time; }
76 75
77 double m_beginTime; 76 double m_beginTime;
78 double m_pauseTime; 77 double m_pauseTime;
79 double m_resumeTime; 78 double m_resumeTime;
80 double m_accumulatedActiveTime; 79 double m_accumulatedActiveTime;
81 double m_presetStartTime; 80 double m_presetStartTime;
82 81
83 bool m_documentOrderIndexesDirty; 82 bool m_documentOrderIndexesDirty;
84 83
85 Timer<SMILTimeContainer> m_timer; 84 Timer<SMILTimeContainer> m_timer;
86 85
87 typedef pair<SVGElement*, QualifiedName> ElementAttributePair; 86 typedef pair<SVGElement*, QualifiedName> ElementAttributePair;
88 typedef Vector<SVGSMILElement*> AnimationsVector; 87 typedef Vector<SVGSMILElement*> AnimationsVector;
89 typedef HashMap<ElementAttributePair, OwnPtr<AnimationsVector> > GroupedAnim ationsMap; 88 typedef HashMap<ElementAttributePair, OwnPtr<AnimationsVector> > GroupedAnim ationsMap;
90 GroupedAnimationsMap m_scheduledAnimations; 89 GroupedAnimationsMap m_scheduledAnimations;
91 90
92 SVGSVGElement* m_ownerSVGElement; 91 SVGSVGElement* m_ownerSVGElement;
93 92
94 #ifndef NDEBUG 93 #ifndef NDEBUG
95 bool m_preventScheduledAnimationsChanges; 94 bool m_preventScheduledAnimationsChanges;
96 #endif 95 #endif
97 }; 96 };
98 } 97 }
99 98
100 #endif // SMILTimeContainer_h 99 #endif // SMILTimeContainer_h
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698