1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

LibWeb/HTML: Port Window.cancelIdleCallback() to IDL

This commit is contained in:
Linus Groh 2023-03-06 23:43:25 +00:00
parent b410804f54
commit 86589f09dc
3 changed files with 18 additions and 32 deletions

View file

@ -120,8 +120,6 @@ public:
void start_an_idle_period();
void cancel_idle_callback_impl(u32);
AnimationFrameCallbackDriver& animation_frame_callback_driver() { return m_animation_frame_callback_driver; }
// https://html.spec.whatwg.org/multipage/interaction.html#transient-activation
@ -181,6 +179,7 @@ public:
double device_pixel_ratio() const;
u32 request_idle_callback(WebIDL::CallbackType&, RequestIdleCallback::IdleRequestOptions const&);
void cancel_idle_callback(u32 handle);
JS::GCPtr<Selection::Selection> get_selection() const;
@ -264,8 +263,6 @@ private:
JS_DECLARE_NATIVE_FUNCTION(queue_microtask);
JS_DECLARE_NATIVE_FUNCTION(cancel_idle_callback);
HTML::Location* m_location { nullptr };
// [[CrossOriginPropertyDescriptorMap]], https://html.spec.whatwg.org/multipage/browsers.html#crossoriginpropertydescriptormap