diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-19 20:14:01 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 56e769e4ba0cc63684930dda6df8ab6fe5c98b33 (patch) | |
tree | 0a144d377338feab28a9235e9fc41b1dd2a8fbed /Userland/Libraries/LibWeb/Bindings/WindowObject.cpp | |
parent | ae9b52e387f959dc516ad0b526196f22fe8c7a47 (diff) | |
download | serenity-56e769e4ba0cc63684930dda6df8ab6fe5c98b33.zip |
LibJS: Replace usages of JS_{DECLARE, DEFINE}_NATIVE_GETTER
These macros are equivalent to JS_{DECLARE, DEFINE}_NATIVE_FUNCTION and
were only sometimes used, so let's just get rid of them altogether.
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/WindowObject.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/WindowObject.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp index fe0e377f32..24b670ea1d 100644 --- a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp +++ b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp @@ -560,7 +560,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::match_media) } // https://www.w3.org/TR/cssom-view/#dom-window-scrollx -JS_DEFINE_NATIVE_GETTER(WindowObject::scroll_x_getter) +JS_DEFINE_NATIVE_FUNCTION(WindowObject::scroll_x_getter) { auto* impl = impl_from(vm, global_object); if (!impl) @@ -569,7 +569,7 @@ JS_DEFINE_NATIVE_GETTER(WindowObject::scroll_x_getter) } // https://www.w3.org/TR/cssom-view/#dom-window-scrolly -JS_DEFINE_NATIVE_GETTER(WindowObject::scroll_y_getter) +JS_DEFINE_NATIVE_FUNCTION(WindowObject::scroll_y_getter) { auto* impl = impl_from(vm, global_object); if (!impl) @@ -704,7 +704,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::history_getter) return wrap(global_object, impl->associated_document().history()); } -JS_DEFINE_NATIVE_GETTER(WindowObject::screen_left_getter) +JS_DEFINE_NATIVE_FUNCTION(WindowObject::screen_left_getter) { auto* impl = impl_from(vm, global_object); if (!impl) @@ -712,7 +712,7 @@ JS_DEFINE_NATIVE_GETTER(WindowObject::screen_left_getter) return JS::Value(impl->screen_x()); } -JS_DEFINE_NATIVE_GETTER(WindowObject::screen_top_getter) +JS_DEFINE_NATIVE_FUNCTION(WindowObject::screen_top_getter) { auto* impl = impl_from(vm, global_object); if (!impl) @@ -720,7 +720,7 @@ JS_DEFINE_NATIVE_GETTER(WindowObject::screen_top_getter) return JS::Value(impl->screen_y()); } -JS_DEFINE_NATIVE_GETTER(WindowObject::screen_x_getter) +JS_DEFINE_NATIVE_FUNCTION(WindowObject::screen_x_getter) { auto* impl = impl_from(vm, global_object); if (!impl) @@ -728,7 +728,7 @@ JS_DEFINE_NATIVE_GETTER(WindowObject::screen_x_getter) return JS::Value(impl->screen_x()); } -JS_DEFINE_NATIVE_GETTER(WindowObject::screen_y_getter) +JS_DEFINE_NATIVE_FUNCTION(WindowObject::screen_y_getter) { auto* impl = impl_from(vm, global_object); if (!impl) |