LibWeb: Implement legacyOutputDidListenersThrowFlag

This commit is contained in:
stelar7 2024-11-07 22:59:03 +01:00 committed by Jelle Raaijmakers
commit 4357c3229c
Notes: github-actions[bot] 2024-11-26 13:51:37 +00:00
3 changed files with 19 additions and 10 deletions

View file

@ -15,10 +15,11 @@ namespace Web::DOM {
class EventDispatcher {
public:
static bool dispatch(GC::Ref<EventTarget>, Event&, bool legacy_target_override = false);
static bool dispatch(GC::Ref<EventTarget>, Event&, bool legacy_target_override, bool& legacy_output_did_listeners_throw);
private:
static void invoke(Event::PathEntry&, Event&, Event::Phase);
static bool inner_invoke(Event&, Vector<GC::Root<DOM::DOMEventListener>>&, Event::Phase, bool);
static void invoke(Event::PathEntry&, Event&, Event::Phase, bool& legacy_output_did_listeners_throw);
static bool inner_invoke(Event&, Vector<GC::Root<DOM::DOMEventListener>>&, Event::Phase, bool, bool&);
};
}