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

LibWeb: Implement size attribute of CountQueuingStrategy

Co-authored-by: Matthew Olsson <mattco@serenityos.org>
This commit is contained in:
Shannon Booth 2023-06-23 08:46:46 +12:00 committed by Andreas Kling
parent 6d93692bc5
commit 49689e5d8e
5 changed files with 41 additions and 1 deletions

View file

@ -122,6 +122,8 @@ public:
CrossOriginPropertyDescriptorMap const& cross_origin_property_descriptor_map() const { return m_cross_origin_property_descriptor_map; }
CrossOriginPropertyDescriptorMap& cross_origin_property_descriptor_map() { return m_cross_origin_property_descriptor_map; }
WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::CallbackType>> count_queuing_strategy_size_function();
// JS API functions
JS::NonnullGCPtr<WindowProxy> window() const;
JS::NonnullGCPtr<WindowProxy> self() const;
@ -241,6 +243,9 @@ private:
// https://html.spec.whatwg.org/multipage/interaction.html#user-activation-data-model
HighResolutionTime::DOMHighResTimeStamp m_last_activation_timestamp { NumericLimits<double>::max() };
// https://streams.spec.whatwg.org/#count-queuing-strategy-size-function
JS::GCPtr<WebIDL::CallbackType> m_count_queuing_strategy_size_function;
};
void run_animation_frame_callbacks(DOM::Document&, double now);