mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibWeb: Use a callback function in ResizeObserver IDL
This commit is contained in:
parent
b267c4178a
commit
46fa18657c
Notes:
sideshowbarker
2024-07-17 16:26:37 +09:00
Author: https://github.com/IdanHo
Commit: 46fa18657c
Pull-request: https://github.com/SerenityOS/serenity/pull/13369
Reviewed-by: https://github.com/alimpfard ✅
3 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue