mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibWeb: Use a callback function in IntersectionObserver IDL
This commit is contained in:
committed by
Andreas Kling
parent
f45d361f03
commit
b267c4178a
Notes:
sideshowbarker
2024-07-17 16:26:41 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/b267c4178a Pull-request: https://github.com/SerenityOS/serenity/pull/13369 Reviewed-by: https://github.com/alimpfard ✅
@@ -1,10 +1,11 @@
|
||||
#import <DOM/Element.idl>
|
||||
#import <DOM/Node.idl>
|
||||
|
||||
callback IntersectionObserverCallback = undefined (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer);
|
||||
|
||||
[Exposed=(Window)]
|
||||
interface IntersectionObserver {
|
||||
// FIXME: Should be: IntersectionObserverCallback
|
||||
constructor(any callback, optional IntersectionObserverInit options = {});
|
||||
constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
|
||||
|
||||
undefined observe(Element target);
|
||||
undefined unobserve(Element target);
|
||||
|
||||
Reference in New Issue
Block a user