LibWeb: Use a callback function in ResizeObserver IDL

This commit is contained in:
Idan Horowitz
2022-03-30 23:48:45 +03:00
committed by Andreas Kling
parent b267c4178a
commit 46fa18657c
Notes: sideshowbarker 2024-07-17 16:26:37 +09:00
3 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ class ResizeObserver
public:
using WrapperType = Bindings::ResizeObserverWrapper;
static NonnullRefPtr<ResizeObserver> create_with_global_object(JS::GlobalObject&, JS::Value callback);
static NonnullRefPtr<ResizeObserver> create_with_global_object(JS::GlobalObject&, Bindings::CallbackType const& callback);
void observe(DOM::Element& target, ResizeObserverOptions);
void unobserve(DOM::Element& target);