mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Implement legacyOutputDidListenersThrowFlag
This commit is contained in:
parent
932fb2024e
commit
4357c3229c
Notes:
github-actions[bot]
2024-11-26 13:51:37 +00:00
Author: https://github.com/stelar7
Commit: 4357c3229c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2236
Reviewed-by: https://github.com/gmta ✅
3 changed files with 19 additions and 10 deletions
|
@ -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&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue