diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-29 19:41:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 21:21:57 +0200 |
commit | 3a4565beec10f2898844884c19dc3aacf1922d37 (patch) | |
tree | 67034f7ca6ef7e7c9a04d2c665c78218f1be1e60 /Userland/Libraries/LibWeb/Bindings | |
parent | 87f00590881f39ec77c4b03d3c413b567d0e48f1 (diff) | |
download | serenity-3a4565beec10f2898844884c19dc3aacf1922d37.zip |
LibWeb: Make CSSRule and CSSRuleList available to JavaScript :^)
This patch makes both of these classes inherit from RefCounted and
Bindings::Wrappable, plus some minimal rejigging to allow us to keep
using them internally while also exposing them to web content.
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/WindowObjectHelper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/WindowObjectHelper.h b/Userland/Libraries/LibWeb/Bindings/WindowObjectHelper.h index 1ee1f80e77..c74b6abf17 100644 --- a/Userland/Libraries/LibWeb/Bindings/WindowObjectHelper.h +++ b/Userland/Libraries/LibWeb/Bindings/WindowObjectHelper.h @@ -12,6 +12,10 @@ #include <LibWeb/Bindings/AbortControllerPrototype.h> #include <LibWeb/Bindings/AbortSignalConstructor.h> #include <LibWeb/Bindings/AbortSignalPrototype.h> +#include <LibWeb/Bindings/CSSRuleConstructor.h> +#include <LibWeb/Bindings/CSSRuleListConstructor.h> +#include <LibWeb/Bindings/CSSRuleListPrototype.h> +#include <LibWeb/Bindings/CSSRulePrototype.h> #include <LibWeb/Bindings/CSSStyleDeclarationConstructor.h> #include <LibWeb/Bindings/CSSStyleDeclarationPrototype.h> #include <LibWeb/Bindings/CSSStyleSheetConstructor.h> @@ -265,6 +269,8 @@ auto& vm = this->vm(); \ ADD_WINDOW_OBJECT_INTERFACE(AbortController) \ ADD_WINDOW_OBJECT_INTERFACE(AbortSignal) \ + ADD_WINDOW_OBJECT_INTERFACE(CSSRule) \ + ADD_WINDOW_OBJECT_INTERFACE(CSSRuleList) \ ADD_WINDOW_OBJECT_INTERFACE(CanvasRenderingContext2D) \ ADD_WINDOW_OBJECT_INTERFACE(CharacterData) \ ADD_WINDOW_OBJECT_INTERFACE(CloseEvent) \ |