1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00
serenity/Userland/Libraries/LibWeb/Bindings
Andreas Kling e76e8e22b5 LibWeb: Separate "event listener" from "EventListener"
I can't imagine how this happened, but it seems we've managed to
conflate the "event listener" and "EventListener" concepts from the DOM
specification in some parts of the code.

We previously had two things:

    - DOM::EventListener
    - DOM::EventTarget::EventListenerRegistration

DOM::EventListener was roughly the "EventListener" IDL type,
and DOM::EventTarget::EventListenerRegistration was roughly the "event
listener" concept. However, they were used interchangeably (and
incorrectly!) in many places.

After this patch, we now have:

    - DOM::IDLEventListener
    - DOM::DOMEventListener

DOM::IDLEventListener is the "EventListener" IDL type,
and DOM::DOMEventListener is the "event listener" concept.

This patch also updates the addEventListener() and removeEventListener()
functions to follow the spec more closely, along with the "inner invoke"
function in our EventDispatcher.
2022-02-16 22:21:45 +01:00
..
CallbackType.h LibWeb: Introduce the Environment Settings Object 2022-02-08 17:47:44 +00:00
CSSNamespace.cpp LibWeb: Convert the CSS namespace object to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
CSSNamespace.h LibWeb: Convert the CSS namespace object to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
CSSRuleWrapperFactory.cpp LibWeb: Add the CSSStyleRule interface with some limited functionality 2021-09-30 00:00:55 +02:00
CSSRuleWrapperFactory.h LibWeb: Add the CSSStyleRule interface with some limited functionality 2021-09-30 00:00:55 +02:00
CSSStyleDeclarationWrapperCustom.cpp LibJS: Rename PropertyName to PropertyKey 2021-10-24 17:18:07 +02:00
EventListenerWrapper.cpp LibWeb: Separate "event listener" from "EventListener" 2022-02-16 22:21:45 +01:00
EventListenerWrapper.h LibWeb: Separate "event listener" from "EventListener" 2022-02-16 22:21:45 +01:00
EventTargetWrapperFactory.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EventTargetWrapperFactory.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EventWrapperFactory.cpp LibWeb: Implement PromiseRejectionEvent 2021-10-11 13:30:17 +01:00
EventWrapperFactory.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ExceptionOrUtils.h LibWeb: Convert throw_dom_exception_if_needed() to ThrowCompletionOr 2021-10-31 18:51:07 +01:00
IDLAbstractOperations.cpp LibJS: Get rid of unnecessary work from canonical_numeric_index_string 2022-02-14 21:06:49 +00:00
IDLAbstractOperations.h LibJS: Get rid of unnecessary work from canonical_numeric_index_string 2022-02-14 21:06:49 +00:00
ImageConstructor.cpp LibJS: Convert NativeFunction::{call,construct}() to ThrowCompletionOr 2021-10-21 09:02:23 +01:00
ImageConstructor.h LibJS: Convert NativeFunction::{call,construct}() to ThrowCompletionOr 2021-10-21 09:02:23 +01:00
LocationObject.cpp LibWeb: Convert the Location object to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
LocationObject.h LibWeb: Convert the Location object to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
MainThreadVM.cpp LibJS: Replace uses of MarkedValueList with MarkedVector<Value> 2022-02-09 12:25:27 +00:00
MainThreadVM.h LibWeb: Implement the JS host hooks for promises, job callbacks and more 2022-02-08 17:47:44 +00:00
NavigatorObject.cpp LibWeb: Convert the Navigator object to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
NavigatorObject.h LibWeb: Convert the Navigator object to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
NodeWrapperFactory.cpp LibWeb: Add SVG <polygon> element and test case :^) 2022-02-11 21:38:27 +01:00
NodeWrapperFactory.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Replaceable.h LibWeb: Convert the Window object to ThrowCompletionOr 2021-10-31 15:48:36 +01:00
WindowObject.cpp LibWeb: Add Storage interface and window.localStorage 2022-02-08 21:53:20 +01:00
WindowObject.h LibWeb: Add Storage interface and window.localStorage 2022-02-08 21:53:20 +01:00
WindowObjectHelper.h LibWeb: Implement a very basic version of TextDecoder 2022-02-16 22:48:32 +03:30
Wrappable.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Wrappable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Wrapper.h LibJS: Remove the JS_TRACK_ZOMBIE_CELLS option 2022-02-05 11:52:51 +01:00