[Web Animations] Refactor AnimationEffect and KeyframeEffect into AnimationEffectRead...
[WebKit-https.git] / Source / WebCore / bindings / js / JSWebAnimationCustom.cpp
index 8b56f86..57edbab 100644 (file)
@@ -26,7 +26,7 @@
 #include "config.h"
 #include "JSWebAnimation.h"
 
-#include "JSAnimationEffect.h"
+#include "JSAnimationEffectReadOnly.h"
 #include "JSAnimationTimeline.h"
 #include "JSDOMConstructor.h"
 
@@ -45,8 +45,8 @@ EncodedJSValue JSC_HOST_CALL constructJSWebAnimation(ExecState& state)
     if (UNLIKELY(!context))
         return throwConstructorScriptExecutionContextUnavailableError(state, throwScope, "Animation");
     auto& document = downcast<Document>(*context);
-    auto effect = convert<IDLNullable<IDLInterface<AnimationEffect>>>(state, state.argument(0), [](ExecState& state, ThrowScope& scope) {
-        throwArgumentTypeError(state, scope, 0, "effect", "Animation", nullptr, "AnimationEffect");
+    auto effect = convert<IDLNullable<IDLInterface<AnimationEffectReadOnly>>>(state, state.argument(0), [](ExecState& state, ThrowScope& scope) {
+        throwArgumentTypeError(state, scope, 0, "effect", "Animation", nullptr, "AnimationEffectReadOnly");
     });
     RETURN_IF_EXCEPTION(throwScope, encodedJSValue());