1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibWeb: Remove no-op impl() methods from the WEB_PLATFORM_OBJECT macro

These are leftovers from when wrapper objects still had an internal
implementation, which is no longer the case.
This commit is contained in:
Linus Groh 2022-09-21 17:45:18 +01:00
parent 2cab2a8e8f
commit 6055b0e850
14 changed files with 28 additions and 39 deletions

View file

@ -91,15 +91,14 @@ bool EventDispatcher::inner_invoke(Event& event, Vector<JS::Handle<DOM::DOMEvent
// 8. If global is a Window object, then:
if (is<HTML::Window>(global)) {
auto& bindings_window_global = verify_cast<HTML::Window>(global);
auto& window_impl = bindings_window_global.impl();
auto& window = verify_cast<HTML::Window>(global);
// 1. Set currentEvent to globals current event.
current_event = window_impl.current_event();
current_event = window.current_event();
// 2. If invocationTargetInShadowTree is false, then set globals current event to event.
if (!invocation_target_in_shadow_tree)
window_impl.set_current_event(&event);
window.set_current_event(&event);
}
// 9. If listeners passive is true, then set events in passive listener flag.
@ -125,9 +124,8 @@ bool EventDispatcher::inner_invoke(Event& event, Vector<JS::Handle<DOM::DOMEvent
// 12. If global is a Window object, then set globals current event to currentEvent.
if (is<HTML::Window>(global)) {
auto& bindings_window_global = verify_cast<HTML::Window>(global);
auto& window_impl = bindings_window_global.impl();
window_impl.set_current_event(current_event);
auto& window = verify_cast<HTML::Window>(global);
window.set_current_event(current_event);
}
// 13. If events stop immediate propagation flag is set, then return found.