diff --git a/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp b/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp index 055a06a371..99c6994b62 100644 --- a/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp +++ b/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp @@ -11,19 +11,19 @@ namespace Web::Animations { JS_DEFINE_ALLOCATOR(AnimationPlaybackEvent); -JS::NonnullGCPtr AnimationPlaybackEvent::create(JS::Realm& realm, FlyString const& event_name, AnimationPlaybackEventInit const& event_init) +JS::NonnullGCPtr AnimationPlaybackEvent::create(JS::Realm& realm, FlyString const& type, AnimationPlaybackEventInit const& event_init) { - return realm.heap().allocate(realm, realm, event_name, event_init); + return realm.heap().allocate(realm, realm, type, event_init); } // https://www.w3.org/TR/web-animations-1/#dom-animationplaybackevent-animationplaybackevent -WebIDL::ExceptionOr> AnimationPlaybackEvent::construct_impl(JS::Realm& realm, FlyString const& event_name, AnimationPlaybackEventInit const& event_init) +WebIDL::ExceptionOr> AnimationPlaybackEvent::construct_impl(JS::Realm& realm, FlyString const& type, AnimationPlaybackEventInit const& event_init) { - return create(realm, event_name, event_init); + return create(realm, type, event_init); } -AnimationPlaybackEvent::AnimationPlaybackEvent(JS::Realm& realm, FlyString const& event_name, AnimationPlaybackEventInit const& event_init) - : DOM::Event(realm, event_name, event_init) +AnimationPlaybackEvent::AnimationPlaybackEvent(JS::Realm& realm, FlyString const& type, AnimationPlaybackEventInit const& event_init) + : DOM::Event(realm, type, event_init) , m_current_time(event_init.current_time) , m_timeline_time(event_init.timeline_time) { diff --git a/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.h b/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.h index 08523c599e..70f9a361dc 100644 --- a/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.h +++ b/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.h @@ -23,8 +23,8 @@ class AnimationPlaybackEvent : public DOM::Event { JS_DECLARE_ALLOCATOR(AnimationPlaybackEvent); public: - [[nodiscard]] static JS::NonnullGCPtr create(JS::Realm&, FlyString const& event_name, AnimationPlaybackEventInit const& event_init = {}); - static WebIDL::ExceptionOr> construct_impl(JS::Realm&, FlyString const& event_name, AnimationPlaybackEventInit const& event_init); + [[nodiscard]] static JS::NonnullGCPtr create(JS::Realm&, FlyString const& type, AnimationPlaybackEventInit const& event_init = {}); + static WebIDL::ExceptionOr> construct_impl(JS::Realm&, FlyString const& type, AnimationPlaybackEventInit const& event_init); virtual ~AnimationPlaybackEvent() override = default; @@ -35,7 +35,7 @@ public: void set_timeline_time(Optional timeline_time) { m_timeline_time = timeline_time; } private: - AnimationPlaybackEvent(JS::Realm&, FlyString const& event_name, AnimationPlaybackEventInit const& event_init); + AnimationPlaybackEvent(JS::Realm&, FlyString const& type, AnimationPlaybackEventInit const& event_init); virtual void initialize(JS::Realm&) override;