mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:07:35 +00:00
LibWeb: Port Intrinsics from DeprecatedString
This commit is contained in:
parent
9cd36839d2
commit
96af80acd1
279 changed files with 305 additions and 304 deletions
|
@ -27,7 +27,7 @@ FocusEvent::~FocusEvent() = default;
|
|||
void FocusEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::FocusEventPrototype>(realm, "FocusEvent"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::FocusEventPrototype>(realm, "FocusEvent"_fly_string));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -573,7 +573,7 @@ KeyboardEvent::~KeyboardEvent() = default;
|
|||
void KeyboardEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::KeyboardEventPrototype>(realm, "KeyboardEvent"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::KeyboardEventPrototype>(realm, "KeyboardEvent"_fly_string));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ MouseEvent::~MouseEvent() = default;
|
|||
void MouseEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::MouseEventPrototype>(realm, "MouseEvent"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::MouseEventPrototype>(realm, "MouseEvent"_fly_string));
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/uievents/#dom-mouseevent-button
|
||||
|
|
|
@ -38,7 +38,7 @@ UIEvent::~UIEvent() = default;
|
|||
void UIEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::UIEventPrototype>(realm, "UIEvent"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::UIEventPrototype>(realm, "UIEvent"_fly_string));
|
||||
}
|
||||
|
||||
void UIEvent::visit_edges(Cell::Visitor& visitor)
|
||||
|
|
|
@ -28,7 +28,7 @@ WheelEvent::~WheelEvent() = default;
|
|||
void WheelEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::WheelEventPrototype>(realm, "WheelEvent"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::WheelEventPrototype>(realm, "WheelEvent"_fly_string));
|
||||
}
|
||||
|
||||
JS::NonnullGCPtr<WheelEvent> WheelEvent::create(JS::Realm& realm, FlyString const& event_name, WheelEventInit const& event_init, double page_x, double page_y, double offset_x, double offset_y, unsigned modifiers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue