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

Unified Diff: Source/core/svg/animation/SVGSMILElement.h

Issue 23823006: [SVG] Handle repeat(n) event for svg animations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/animation/SVGSMILElement.h
diff --git a/Source/core/svg/animation/SVGSMILElement.h b/Source/core/svg/animation/SVGSMILElement.h
index c6cbd1a6a2efc5ba145a9951519ba4d4b7c3131e..e6bb09512e353c0bf949282af1481cb29cf0806f 100644
--- a/Source/core/svg/animation/SVGSMILElement.h
+++ b/Source/core/svg/animation/SVGSMILElement.h
@@ -114,9 +114,9 @@ public:
virtual void applyResultsToTarget() = 0;
void connectConditions();
- bool hasConditionsConnected() const { return m_conditionsConnected; }
void dispatchPendingEvent(SMILEventSender*);
+ void dispatchRepeatEvents(unsigned);
protected:
void addBeginTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::Origin = SMILTimeWithOrigin::ParserOrigin);
@@ -162,13 +162,12 @@ private:
AccessKey
};
- Condition(Type, BeginOrEnd, const String& baseID, const String& name, SMILTime offset, int repeats = -1);
+ Condition(Type, BeginOrEnd, const String& baseID, const String& name, SMILTime offset);
Type m_type;
BeginOrEnd m_beginOrEnd;
String m_baseID;
String m_name;
SMILTime m_offset;
- int m_repeats;
RefPtr<Element> m_syncbase;
RefPtr<ConditionEventListener> m_eventListener;
};
@@ -234,6 +233,8 @@ private:
RefPtr<SMILTimeContainer> m_timeContainer;
unsigned m_documentOrderIndex;
+ Vector<unsigned> m_repeatEventCountList;
+
mutable SMILTime m_cachedDur;
mutable SMILTime m_cachedRepeatDur;
mutable SMILTime m_cachedRepeatCount;

Powered by Google App Engine
This is Rietveld 408576698