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:
parent
2cab2a8e8f
commit
6055b0e850
14 changed files with 28 additions and 39 deletions
|
@ -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 global’s current event.
|
||||
current_event = window_impl.current_event();
|
||||
current_event = window.current_event();
|
||||
|
||||
// 2. If invocationTargetInShadowTree is false, then set global’s current event to event.
|
||||
if (!invocation_target_in_shadow_tree)
|
||||
window_impl.set_current_event(&event);
|
||||
window.set_current_event(&event);
|
||||
}
|
||||
|
||||
// 9. If listener’s passive is true, then set event’s 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 global’s 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 event’s stop immediate propagation flag is set, then return found.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue