1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +00:00

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
3 changed files with 5 additions and 4 deletions

View file

@ -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.