mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibWeb: Rename confusing parameter in AnimationPlaybackEvent
This commit is contained in:
parent
8c80d0ee02
commit
2e29b0d700
2 changed files with 9 additions and 9 deletions
|
@ -11,19 +11,19 @@ namespace Web::Animations {
|
|||
|
||||
JS_DEFINE_ALLOCATOR(AnimationPlaybackEvent);
|
||||
|
||||
JS::NonnullGCPtr<AnimationPlaybackEvent> AnimationPlaybackEvent::create(JS::Realm& realm, FlyString const& event_name, AnimationPlaybackEventInit const& event_init)
|
||||
JS::NonnullGCPtr<AnimationPlaybackEvent> AnimationPlaybackEvent::create(JS::Realm& realm, FlyString const& type, AnimationPlaybackEventInit const& event_init)
|
||||
{
|
||||
return realm.heap().allocate<AnimationPlaybackEvent>(realm, realm, event_name, event_init);
|
||||
return realm.heap().allocate<AnimationPlaybackEvent>(realm, realm, type, event_init);
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#dom-animationplaybackevent-animationplaybackevent
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<AnimationPlaybackEvent>> AnimationPlaybackEvent::construct_impl(JS::Realm& realm, FlyString const& event_name, AnimationPlaybackEventInit const& event_init)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<AnimationPlaybackEvent>> 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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue