[Web Animations] Make WPT test at interfaces/Animation/finish.html pass reliably
[WebKit-https.git] / Source / WebCore / animation / WebAnimation.cpp
index 55538b9..9eacd45 100644 (file)
@@ -1055,10 +1055,14 @@ void WebAnimation::runPendingTasks()
         runPendingPlayTask();
 }
 
-void WebAnimation::resolve(RenderStyle& targetStyle)
+void WebAnimation::resolve()
 {
     updateFinishedState(DidSeek::No, SynchronouslyNotify::Yes);
+}
 
+void WebAnimation::resolve(RenderStyle& targetStyle)
+{
+    resolve();
     if (m_effect)
         m_effect->apply(targetStyle);
 }