mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Use a callback function in ResizeObserver IDL
This commit is contained in:
committed by
Andreas Kling
parent
b267c4178a
commit
46fa18657c
Notes:
sideshowbarker
2024-07-17 16:26:37 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/46fa18657c Pull-request: https://github.com/SerenityOS/serenity/pull/13369 Reviewed-by: https://github.com/alimpfard ✅
@@ -3,14 +3,15 @@
|
||||
[Exposed=(Window)]
|
||||
interface ResizeObserver {
|
||||
|
||||
// FIXME: This should be a ResizeObserverCallback.
|
||||
constructor(any callback);
|
||||
constructor(ResizeObserverCallback callback);
|
||||
undefined observe(Element target, optional ResizeObserverOptions options = {});
|
||||
undefined unobserve(Element target);
|
||||
undefined disconnect();
|
||||
|
||||
};
|
||||
|
||||
callback ResizeObserverCallback = void (sequence<ResizeObserverEntry> entries, ResizeObserver observer);
|
||||
|
||||
dictionary ResizeObserverOptions {
|
||||
|
||||
// FIXME: This should be an enum.
|
||||
|
||||
Reference in New Issue
Block a user