[Web Animations] Make imported/mozilla/css-animations/test_event-dispatch.html pass...
[WebKit-https.git] / Source / WebCore / animation / WebAnimation.h
index f6ad91f..1485294 100644 (file)
@@ -97,16 +97,12 @@ public:
     ExceptionOr<void> pause();
     ExceptionOr<void> reverse();
 
-    Seconds timeToNextRequiredTick(Seconds) const;
+    Seconds timeToNextRequiredTick() const;
     void resolve(RenderStyle&);
     void effectTargetDidChange(Element* previousTarget, Element* newTarget);
     void acceleratedRunningStateDidChange();
     void startOrStopAccelerated();
 
-    enum class DidSeek { Yes, No };
-    enum class SynchronouslyNotify { Yes, No };
-    void updateFinishedState(DidSeek, SynchronouslyNotify);
-
     void timingModelDidChange();
     void suspendEffectInvalidation();
     void unsuspendEffectInvalidation();
@@ -122,10 +118,13 @@ protected:
     bool isEffectInvalidationSuspended() { return m_suspendCount; }
 
 private:
+    enum class DidSeek { Yes, No };
+    enum class SynchronouslyNotify { Yes, No };
     enum class RespectHoldTime { Yes, No };
     enum class AutoRewind { Yes, No };
     enum class TimeToRunPendingTask { NotScheduled, ASAP, WhenReady };
 
+    void updateFinishedState(DidSeek, SynchronouslyNotify);
     void enqueueAnimationPlaybackEvent(const AtomicString&, std::optional<Seconds>, std::optional<Seconds>);
     Seconds effectEndTime() const;
     WebAnimation& readyPromiseResolve();