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

LibWeb: Implement size attribute of ByteLengthQueuingStrategy

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

View file

@ -123,6 +123,7 @@ public:
CrossOriginPropertyDescriptorMap& cross_origin_property_descriptor_map() { return m_cross_origin_property_descriptor_map; }
WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::CallbackType>> count_queuing_strategy_size_function();
WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::CallbackType>> byte_length_queuing_strategy_size_function();
// JS API functions
JS::NonnullGCPtr<WindowProxy> window() const;
@ -246,6 +247,9 @@ private:
// https://streams.spec.whatwg.org/#count-queuing-strategy-size-function
JS::GCPtr<WebIDL::CallbackType> m_count_queuing_strategy_size_function;
// https://streams.spec.whatwg.org/#byte-length-queuing-strategy-size-function
JS::GCPtr<WebIDL::CallbackType> m_byte_length_queuing_strategy_size_function;
};
void run_animation_frame_callbacks(DOM::Document&, double now);