diff options
author | Linus Groh <mail@linusgroh.de> | 2022-08-22 18:31:08 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 13:58:30 +0100 |
commit | 40a70461a0f6b0224c51fe7fb1be28edd26bb4b3 (patch) | |
tree | 5d54bb00d2d82dac774137057bcec21cc9d5d56d /Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h | |
parent | 56b2ae5ac0a383c96163c4b7b07bddd79da23c7a (diff) | |
download | serenity-40a70461a0f6b0224c51fe7fb1be28edd26bb4b3.zip |
LibWeb: Replace GlobalObject with Realm in wrapper functions
Similar to create() in LibJS, wrap() et al. are on a low enough level to
warrant passing a Realm directly instead of relying on the current realm
from the VM, as a wrapper may need to be allocated while no JS is being
executed.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h index bb40ad01cb..4b726a4274 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h @@ -119,6 +119,6 @@ private: namespace Web::Bindings { -CSSStyleDeclarationWrapper* wrap(JS::GlobalObject&, CSS::CSSStyleDeclaration&); +CSSStyleDeclarationWrapper* wrap(JS::Realm&, CSS::CSSStyleDeclaration&); } |