diff --git a/AK/BigIntBase.h b/AK/BigIntBase.h index bd82469314..4a42f8e733 100644 --- a/AK/BigIntBase.h +++ b/AK/BigIntBase.h @@ -595,9 +595,12 @@ struct StorageOperations { template static constexpr void div_mod_internal( - StorageSpan dividend, StorageSpan divisor, - StorageSpan quotient, StorageSpan remainder, - size_t dividend_len, size_t divisor_len) + StorageSpan dividend, + StorageSpan divisor, + StorageSpan quotient, + StorageSpan remainder, + size_t dividend_len, + size_t divisor_len) { // Knuth's algorithm D // D1. Normalize diff --git a/AK/Tuple.h b/AK/Tuple.h index 2ae3c92d72..c0258fcaf9 100644 --- a/AK/Tuple.h +++ b/AK/Tuple.h @@ -18,7 +18,7 @@ struct Tuple { template struct Tuple { Tuple(T&& value) - requires(!IsSame < T &&, T const& >) + requires(!IsSame) : value(forward(value)) { } diff --git a/Libraries/LibMedia/VideoFrame.cpp b/Libraries/LibMedia/VideoFrame.cpp index 94d3b46a46..7a74d346c1 100644 --- a/Libraries/LibMedia/VideoFrame.cpp +++ b/Libraries/LibMedia/VideoFrame.cpp @@ -10,7 +10,9 @@ namespace Media { -VideoFrame::VideoFrame(AK::Duration timestamp, AK::Duration duration, +VideoFrame::VideoFrame( + AK::Duration timestamp, + AK::Duration duration, Gfx::Size size, u8 bit_depth, CodingIndependentCodePoints cicp, NonnullRefPtr bitmap) diff --git a/Libraries/LibMedia/VideoFrame.h b/Libraries/LibMedia/VideoFrame.h index 19c1b2e6e5..ef58b49e70 100644 --- a/Libraries/LibMedia/VideoFrame.h +++ b/Libraries/LibMedia/VideoFrame.h @@ -18,9 +18,12 @@ namespace Media { class MEDIA_API VideoFrame final { public: - VideoFrame(AK::Duration timestamp, AK::Duration duration, + VideoFrame( + AK::Duration timestamp, + AK::Duration duration, Gfx::Size size, - u8 bit_depth, CodingIndependentCodePoints cicp, + u8 bit_depth, + CodingIndependentCodePoints cicp, NonnullRefPtr bitmap); ~VideoFrame(); diff --git a/Libraries/LibURL/Pattern/Init.cpp b/Libraries/LibURL/Pattern/Init.cpp index 4426c86fc1..40c97202c4 100644 --- a/Libraries/LibURL/Pattern/Init.cpp +++ b/Libraries/LibURL/Pattern/Init.cpp @@ -166,10 +166,17 @@ static String process_hash_for_init(String const& value, PatternProcessType type } // https://urlpattern.spec.whatwg.org/#process-a-urlpatterninit -PatternErrorOr process_a_url_pattern_init(Init const& init, PatternProcessType type, - Optional const& protocol, Optional const& username, Optional const& password, - Optional const& hostname, Optional const& port, Optional const& pathname, - Optional const& search, Optional const& hash) +PatternErrorOr process_a_url_pattern_init( + Init const& init, + PatternProcessType type, + Optional const& protocol, + Optional const& username, + Optional const& password, + Optional const& hostname, + Optional const& port, + Optional const& pathname, + Optional const& search, + Optional const& hash) { // 1. Let result be the result of creating a new URLPatternInit. Init result; diff --git a/Libraries/LibURL/Pattern/Init.h b/Libraries/LibURL/Pattern/Init.h index e36c1382f6..aab1531ab3 100644 --- a/Libraries/LibURL/Pattern/Init.h +++ b/Libraries/LibURL/Pattern/Init.h @@ -30,9 +30,16 @@ enum class PatternProcessType { URL, }; -PatternErrorOr process_a_url_pattern_init(Init const&, PatternProcessType type, - Optional const& protocol, Optional const& username, Optional const& password, - Optional const& hostname, Optional const& port, Optional const& pathname, - Optional const& search, Optional const& hash); +PatternErrorOr process_a_url_pattern_init( + Init const&, + PatternProcessType type, + Optional const& protocol, + Optional const& username, + Optional const& password, + Optional const& hostname, + Optional const& port, + Optional const& pathname, + Optional const& search, + Optional const& hash); } diff --git a/Libraries/LibURL/Pattern/PatternParser.cpp b/Libraries/LibURL/Pattern/PatternParser.cpp index 844f46f218..ebd7be9f64 100644 --- a/Libraries/LibURL/Pattern/PatternParser.cpp +++ b/Libraries/LibURL/Pattern/PatternParser.cpp @@ -93,8 +93,12 @@ bool PatternParser::is_a_duplicate_name(String const& name) const } // https://urlpattern.spec.whatwg.org/#add-a-part -PatternErrorOr PatternParser::add_a_part(String const& prefix, Optional name_token, - Optional regexp_or_wildcard_token, String const& suffix, Optional modifier_token) +PatternErrorOr PatternParser::add_a_part( + String const& prefix, + Optional name_token, + Optional regexp_or_wildcard_token, + String const& suffix, + Optional modifier_token) { // 1. Let modifier be "none". auto modifier = Part::Modifier::None; diff --git a/Libraries/LibURL/Pattern/PatternParser.h b/Libraries/LibURL/Pattern/PatternParser.h index 08e09d7ef2..cebdca828b 100644 --- a/Libraries/LibURL/Pattern/PatternParser.h +++ b/Libraries/LibURL/Pattern/PatternParser.h @@ -34,8 +34,12 @@ private: PatternErrorOr consume_a_required_token(Token::Type); String consume_text(); PatternErrorOr maybe_add_a_part_from_the_pending_fixed_value(); - PatternErrorOr add_a_part(String const& prefix, Optional name_token, - Optional regexp_or_wildcard_token, String const& suffix, Optional modifier_token); + PatternErrorOr add_a_part( + String const& prefix, + Optional name_token, + Optional regexp_or_wildcard_token, + String const& suffix, + Optional modifier_token); bool is_a_duplicate_name(String const&) const; // https://urlpattern.spec.whatwg.org/#pattern-parser-token-list diff --git a/Libraries/LibWeb/CSS/CSSTransition.cpp b/Libraries/LibWeb/CSS/CSSTransition.cpp index 61a47c699f..99485d9a0b 100644 --- a/Libraries/LibWeb/CSS/CSSTransition.cpp +++ b/Libraries/LibWeb/CSS/CSSTransition.cpp @@ -20,9 +20,17 @@ namespace Web::CSS { GC_DEFINE_ALLOCATOR(CSSTransition); -GC::Ref CSSTransition::start_a_transition(DOM::AbstractElement abstract_element, PropertyID property_id, - size_t transition_generation, double delay, double start_time, double end_time, NonnullRefPtr start_value, - NonnullRefPtr end_value, NonnullRefPtr reversing_adjusted_start_value, double reversing_shortening_factor) +GC::Ref CSSTransition::start_a_transition( + DOM::AbstractElement abstract_element, + PropertyID property_id, + size_t transition_generation, + double delay, + double start_time, + double end_time, + NonnullRefPtr start_value, + NonnullRefPtr end_value, + NonnullRefPtr reversing_adjusted_start_value, + double reversing_shortening_factor) { auto& realm = abstract_element.element().realm(); return realm.create(realm, abstract_element, property_id, transition_generation, delay, start_time, end_time, start_value, end_value, reversing_adjusted_start_value, reversing_shortening_factor); @@ -81,9 +89,18 @@ int CSSTransition::class_specific_composite_order(GC::Ref return transition_property().compare(other->transition_property()); } -CSSTransition::CSSTransition(JS::Realm& realm, DOM::AbstractElement abstract_element, PropertyID property_id, size_t transition_generation, - double delay, double start_time, double end_time, NonnullRefPtr start_value, NonnullRefPtr end_value, - NonnullRefPtr reversing_adjusted_start_value, double reversing_shortening_factor) +CSSTransition::CSSTransition( + JS::Realm& realm, + DOM::AbstractElement abstract_element, + PropertyID property_id, + size_t transition_generation, + double delay, + double start_time, + double end_time, + NonnullRefPtr start_value, + NonnullRefPtr end_value, + NonnullRefPtr reversing_adjusted_start_value, + double reversing_shortening_factor) : Animations::Animation(realm) , m_transition_property(property_id) , m_transition_generation(transition_generation) diff --git a/Libraries/LibWeb/CSS/CSSTransition.h b/Libraries/LibWeb/CSS/CSSTransition.h index d8f0068bed..108cf73043 100644 --- a/Libraries/LibWeb/CSS/CSSTransition.h +++ b/Libraries/LibWeb/CSS/CSSTransition.h @@ -19,9 +19,17 @@ class CSSTransition : public Animations::Animation { GC_DECLARE_ALLOCATOR(CSSTransition); public: - static GC::Ref start_a_transition(DOM::AbstractElement, PropertyID, - size_t transition_generation, double delay, double start_time, double end_time, NonnullRefPtr start_value, - NonnullRefPtr end_value, NonnullRefPtr reversing_adjusted_start_value, double reversing_shortening_factor); + static GC::Ref start_a_transition( + DOM::AbstractElement, + PropertyID, + size_t transition_generation, + double delay, + double start_time, + double end_time, + NonnullRefPtr start_value, + NonnullRefPtr end_value, + NonnullRefPtr reversing_adjusted_start_value, + double reversing_shortening_factor); StringView transition_property() const; @@ -49,9 +57,18 @@ public: void set_previous_phase(Phase phase) { m_previous_phase = phase; } private: - CSSTransition(JS::Realm&, DOM::AbstractElement, PropertyID, size_t transition_generation, - double delay, double start_time, double end_time, NonnullRefPtr start_value, NonnullRefPtr end_value, - NonnullRefPtr reversing_adjusted_start_value, double reversing_shortening_factor); + CSSTransition( + JS::Realm&, + DOM::AbstractElement, + PropertyID, + size_t transition_generation, + double delay, + double start_time, + double end_time, + NonnullRefPtr start_value, + NonnullRefPtr end_value, + NonnullRefPtr reversing_adjusted_start_value, + double reversing_shortening_factor); virtual void initialize(JS::Realm&) override; virtual void visit_edges(Cell::Visitor&) override; diff --git a/Libraries/LibWeb/CSS/Sizing.cpp b/Libraries/LibWeb/CSS/Sizing.cpp index a604486e6c..493f264c7d 100644 --- a/Libraries/LibWeb/CSS/Sizing.cpp +++ b/Libraries/LibWeb/CSS/Sizing.cpp @@ -11,7 +11,8 @@ namespace Web::CSS { // https://drafts.csswg.org/css-images/#default-sizing CSSPixelSize run_default_sizing_algorithm( - Optional specified_width, Optional specified_height, + Optional specified_width, + Optional specified_height, SizeWithAspectRatio const& natural, CSSPixelSize default_size) { diff --git a/Libraries/LibWeb/CSS/Sizing.h b/Libraries/LibWeb/CSS/Sizing.h index c5da1b5925..bf1c78eae6 100644 --- a/Libraries/LibWeb/CSS/Sizing.h +++ b/Libraries/LibWeb/CSS/Sizing.h @@ -21,7 +21,8 @@ struct SizeWithAspectRatio { // https://drafts.csswg.org/css-images/#default-sizing CSSPixelSize run_default_sizing_algorithm( - Optional specified_width, Optional specified_height, + Optional specified_width, + Optional specified_height, SizeWithAspectRatio const& natural_size, CSSPixelSize default_size); diff --git a/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.cpp b/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.cpp index 3993786992..93d7be271a 100644 --- a/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.cpp +++ b/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.cpp @@ -15,7 +15,9 @@ ValueComparingNonnullRefPtr AnchorSizeStyleValue::cr return adopt_ref(*new (nothrow) AnchorSizeStyleValue(anchor_name, anchor_size, fallback_value)); } -AnchorSizeStyleValue::AnchorSizeStyleValue(Optional const& anchor_name, Optional const& anchor_size, +AnchorSizeStyleValue::AnchorSizeStyleValue( + Optional const& anchor_name, + Optional const& anchor_size, ValueComparingRefPtr const& fallback_value) : StyleValueWithDefaultOperators(Type::AnchorSize) , m_properties { .anchor_name = anchor_name, .anchor_size = anchor_size, .fallback_value = fallback_value } diff --git a/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.h b/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.h index 77c37754ea..63c29f21db 100644 --- a/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.h +++ b/Libraries/LibWeb/CSS/StyleValues/AnchorSizeStyleValue.h @@ -32,7 +32,9 @@ public: } private: - AnchorSizeStyleValue(Optional const& anchor_name, Optional const& anchor_size, + AnchorSizeStyleValue( + Optional const& anchor_name, + Optional const& anchor_size, ValueComparingRefPtr const& fallback_value); struct Properties { diff --git a/Libraries/LibWeb/Editing/Internal/Algorithms.h b/Libraries/LibWeb/Editing/Internal/Algorithms.h index da10457b72..b8bcf9aed8 100644 --- a/Libraries/LibWeb/Editing/Internal/Algorithms.h +++ b/Libraries/LibWeb/Editing/Internal/Algorithms.h @@ -57,8 +57,7 @@ GC::Ptr block_node_of_node(GC::Ref); Utf16String canonical_space_sequence(size_t length, bool non_breaking_start, bool non_breaking_end); void canonicalize_whitespace(DOM::BoundaryPoint, bool fix_collapsed_space = true); Vector> clear_the_value(FlyString const&, GC::Ref); -void delete_the_selection(Selection&, bool block_merging = true, bool strip_wrappers = true, - Selection::Direction direction = Selection::Direction::Forwards); +void delete_the_selection(Selection&, bool block_merging = true, bool strip_wrappers = true, Selection::Direction = Selection::Direction::Forwards); Optional effective_command_value(GC::Ptr, FlyString const& command); DOM::BoundaryPoint first_equivalent_point(DOM::BoundaryPoint); void fix_disallowed_ancestors_of_node(GC::Ref); diff --git a/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp b/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp index fb9fbf3d96..6cf702fb15 100644 --- a/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp +++ b/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp @@ -15,8 +15,14 @@ namespace Web::EventTiming { GC_DEFINE_ALLOCATOR(PerformanceEventTiming); // https://www.w3.org/TR/event-timing/#sec-init-event-timing -PerformanceEventTiming::PerformanceEventTiming(JS::Realm& realm, String const& name, HighResolutionTime::DOMHighResTimeStamp start_time, HighResolutionTime::DOMHighResTimeStamp duration, - DOM::Event const& event, HighResolutionTime::DOMHighResTimeStamp processing_start, unsigned long long interaction_id) +PerformanceEventTiming::PerformanceEventTiming( + JS::Realm& realm, + String const& name, + HighResolutionTime::DOMHighResTimeStamp start_time, + HighResolutionTime::DOMHighResTimeStamp duration, + DOM::Event const& event, + HighResolutionTime::DOMHighResTimeStamp processing_start, + unsigned long long interaction_id) : PerformanceTimeline::PerformanceEntry(realm, name, start_time, duration) , m_entry_type(PerformanceTimeline::EntryTypes::event) , m_start_time(event.time_stamp()) diff --git a/Libraries/LibWeb/EventTiming/PerformanceEventTiming.h b/Libraries/LibWeb/EventTiming/PerformanceEventTiming.h index 29b2444a59..bf53f4e2f0 100644 --- a/Libraries/LibWeb/EventTiming/PerformanceEventTiming.h +++ b/Libraries/LibWeb/EventTiming/PerformanceEventTiming.h @@ -37,8 +37,14 @@ public: virtual FlyString const& entry_type() const override; private: - PerformanceEventTiming(JS::Realm& realm, String const& name, HighResolutionTime::DOMHighResTimeStamp start_time, HighResolutionTime::DOMHighResTimeStamp duration, - DOM::Event const& event, HighResolutionTime::DOMHighResTimeStamp processing_start, unsigned long long interaction_id); + PerformanceEventTiming( + JS::Realm&, + String const& name, + HighResolutionTime::DOMHighResTimeStamp start_time, + HighResolutionTime::DOMHighResTimeStamp duration, + DOM::Event const& event, + HighResolutionTime::DOMHighResTimeStamp processing_start, + unsigned long long interaction_id); // m_entry_type defined here for both "event"s and "first-input"s // this is the only PerformanceEntry that has two event types it could represent diff --git a/Libraries/LibWeb/HTML/StorageEvent.cpp b/Libraries/LibWeb/HTML/StorageEvent.cpp index d456d199dc..902c31304e 100644 --- a/Libraries/LibWeb/HTML/StorageEvent.cpp +++ b/Libraries/LibWeb/HTML/StorageEvent.cpp @@ -28,9 +28,15 @@ GC::Ref StorageEvent::construct_impl(JS::Realm& realm, FlyString c StorageEvent::~StorageEvent() = default; // https://html.spec.whatwg.org/multipage/webstorage.html#dom-storageevent-initstorageevent -void StorageEvent::init_storage_event(String const& type, bool bubbles, bool cancelable, - Optional const& key, Optional const& old_value, Optional const& new_value, - String const& url, GC::Ptr storage_area) +void StorageEvent::init_storage_event( + String const& type, + bool bubbles, + bool cancelable, + Optional const& key, + Optional const& old_value, + Optional const& new_value, + String const& url, + GC::Ptr storage_area) { // The initStorageEvent(type, bubbles, cancelable, key, oldValue, newValue, url, storageArea) method must initialize // the event in a manner analogous to the similarly-named initEvent() method. [DOM] diff --git a/Libraries/LibWeb/HTML/StorageEvent.h b/Libraries/LibWeb/HTML/StorageEvent.h index 0cc58130d5..562b6f5f22 100644 --- a/Libraries/LibWeb/HTML/StorageEvent.h +++ b/Libraries/LibWeb/HTML/StorageEvent.h @@ -39,9 +39,14 @@ public: String const& url() const { return m_url; } GC::Ptr storage_area() const { return m_storage_area; } - void init_storage_event(String const& type, bool bubbles = false, bool cancelable = false, - Optional const& key = {}, Optional const& old_value = {}, Optional const& new_value = {}, - String const& url = {}, GC::Ptr storage_area = {}); + void init_storage_event(String const& type, + bool bubbles = false, + bool cancelable = false, + Optional const& key = {}, + Optional const& old_value = {}, + Optional const& new_value = {}, + String const& url = {}, + GC::Ptr storage_area = {}); protected: virtual void visit_edges(Visitor& visitor) override; diff --git a/Libraries/LibWeb/SVG/SVGAnimatedInteger.cpp b/Libraries/LibWeb/SVG/SVGAnimatedInteger.cpp index 1a8611ae4d..cfabd7ccb1 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedInteger.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedInteger.cpp @@ -15,16 +15,25 @@ namespace Web::SVG { GC_DEFINE_ALLOCATOR(SVGAnimatedInteger); -GC::Ref SVGAnimatedInteger::create(JS::Realm& realm, GC::Ref element, - DOM::QualifiedName reflected_attribute, WebIDL::Long initial_value, SupportsSecondValue supports_second_value, +GC::Ref SVGAnimatedInteger::create( + JS::Realm& realm, + GC::Ref element, + DOM::QualifiedName reflected_attribute, + WebIDL::Long initial_value, + SupportsSecondValue supports_second_value, ValueRepresented value_represented) { return realm.create(realm, element, move(reflected_attribute), initial_value, supports_second_value, value_represented); } -SVGAnimatedInteger::SVGAnimatedInteger(JS::Realm& realm, GC::Ref element, DOM::QualifiedName reflected_attribute, - WebIDL::Long initial_value, SupportsSecondValue supports_second_value, ValueRepresented value_represented) +SVGAnimatedInteger::SVGAnimatedInteger( + JS::Realm& realm, + GC::Ref element, + DOM::QualifiedName reflected_attribute, + WebIDL::Long initial_value, + SupportsSecondValue supports_second_value, + ValueRepresented value_represented) : PlatformObject(realm) , m_element(element) , m_reflected_attribute(move(reflected_attribute)) diff --git a/Libraries/LibWeb/SVG/SVGAnimatedInteger.h b/Libraries/LibWeb/SVG/SVGAnimatedInteger.h index 13bc39bca7..3ad800558c 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedInteger.h +++ b/Libraries/LibWeb/SVG/SVGAnimatedInteger.h @@ -28,8 +28,12 @@ public: Second, }; - [[nodiscard]] static GC::Ref create(JS::Realm&, GC::Ref, - DOM::QualifiedName reflected_attribute, WebIDL::Long initial_value, SupportsSecondValue = SupportsSecondValue::No, + [[nodiscard]] static GC::Ref create( + JS::Realm&, + GC::Ref, + DOM::QualifiedName reflected_attribute, + WebIDL::Long initial_value, + SupportsSecondValue = SupportsSecondValue::No, ValueRepresented = ValueRepresented::First); virtual ~SVGAnimatedInteger() override; diff --git a/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp b/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp index c8a9d2d215..4c49c01fe5 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp @@ -14,16 +14,25 @@ namespace Web::SVG { GC_DEFINE_ALLOCATOR(SVGAnimatedNumber); -GC::Ref SVGAnimatedNumber::create(JS::Realm& realm, GC::Ref element, - DOM::QualifiedName reflected_attribute, float initial_value, SupportsSecondValue supports_second_value, +GC::Ref SVGAnimatedNumber::create( + JS::Realm& realm, + GC::Ref element, + DOM::QualifiedName reflected_attribute, + float initial_value, + SupportsSecondValue supports_second_value, ValueRepresented value_represented) { return realm.create(realm, element, move(reflected_attribute), initial_value, supports_second_value, value_represented); } -SVGAnimatedNumber::SVGAnimatedNumber(JS::Realm& realm, GC::Ref element, DOM::QualifiedName reflected_attribute, - float initial_value, SupportsSecondValue supports_second_value, ValueRepresented value_represented) +SVGAnimatedNumber::SVGAnimatedNumber( + JS::Realm& realm, + GC::Ref element, + DOM::QualifiedName reflected_attribute, + float initial_value, + SupportsSecondValue supports_second_value, + ValueRepresented value_represented) : PlatformObject(realm) , m_element(element) , m_reflected_attribute(move(reflected_attribute)) diff --git a/Libraries/LibWeb/SVG/SVGAnimatedNumber.h b/Libraries/LibWeb/SVG/SVGAnimatedNumber.h index 33c1ee284b..bb45f0b293 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedNumber.h +++ b/Libraries/LibWeb/SVG/SVGAnimatedNumber.h @@ -27,8 +27,12 @@ public: Second, }; - [[nodiscard]] static GC::Ref create(JS::Realm&, GC::Ref, - DOM::QualifiedName reflected_attribute, float initial_value, SupportsSecondValue = SupportsSecondValue::No, + [[nodiscard]] static GC::Ref create( + JS::Realm&, + GC::Ref, + DOM::QualifiedName reflected_attribute, + float initial_value, + SupportsSecondValue = SupportsSecondValue::No, ValueRepresented = ValueRepresented::First); virtual ~SVGAnimatedNumber() override; diff --git a/Libraries/LibWeb/SVG/SVGTextPositioningElement.h b/Libraries/LibWeb/SVG/SVGTextPositioningElement.h index 0edf179c02..9e782ef571 100644 --- a/Libraries/LibWeb/SVG/SVGTextPositioningElement.h +++ b/Libraries/LibWeb/SVG/SVGTextPositioningElement.h @@ -23,8 +23,7 @@ struct TextPositioning { Vector dy; Vector rotate; - void apply_to_text_position(Layout::Node const& node, CSSPixelSize viewport, Gfx::FloatPoint& current_text_position, - size_t character_index) const + void apply_to_text_position(Layout::Node const& node, CSSPixelSize viewport, Gfx::FloatPoint& current_text_position, size_t character_index) const { auto value_for_character = [&](Vector const& values) -> float { if (values.is_empty()) diff --git a/Libraries/LibWeb/Streams/ReadableByteStreamController.h b/Libraries/LibWeb/Streams/ReadableByteStreamController.h index 7c472fc733..6909282dad 100644 --- a/Libraries/LibWeb/Streams/ReadableByteStreamController.h +++ b/Libraries/LibWeb/Streams/ReadableByteStreamController.h @@ -65,8 +65,16 @@ protected: virtual void visit_edges(Cell::Visitor& visitor) override; private: - PullIntoDescriptor(GC::Ref buffer, u64 buffer_byte_length, u64 byte_offset, u64 byte_length, u64 bytes_filled, - u64 minimum_fill, u64 element_size, GC::Ref view_constructor, ReaderType reader_type) + PullIntoDescriptor( + GC::Ref buffer, + u64 buffer_byte_length, + u64 byte_offset, + u64 byte_length, + u64 bytes_filled, + u64 minimum_fill, + u64 element_size, + GC::Ref view_constructor, + ReaderType reader_type) : buffer(buffer) , buffer_byte_length(buffer_byte_length) , byte_offset(byte_offset) diff --git a/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp b/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp index d4fec57d54..ef52add54a 100644 --- a/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp +++ b/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp @@ -166,7 +166,8 @@ WebIDL::ExceptionOr> BaseAudioContext::create_periodic_wav // https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createscriptprocessor WebIDL::ExceptionOr> BaseAudioContext::create_script_processor( - WebIDL::UnsignedLong buffer_size, WebIDL::UnsignedLong number_of_input_channels, + WebIDL::UnsignedLong buffer_size, + WebIDL::UnsignedLong number_of_input_channels, WebIDL::UnsignedLong number_of_output_channels) { // The bufferSize parameter determines the buffer size in units of sample-frames. If it’s not passed in, or if the diff --git a/Libraries/LibWeb/WebAudio/BaseAudioContext.h b/Libraries/LibWeb/WebAudio/BaseAudioContext.h index 6a770dbcb2..e4b2b0c913 100644 --- a/Libraries/LibWeb/WebAudio/BaseAudioContext.h +++ b/Libraries/LibWeb/WebAudio/BaseAudioContext.h @@ -82,8 +82,10 @@ public: WebIDL::ExceptionOr> create_gain(); WebIDL::ExceptionOr> create_panner(); WebIDL::ExceptionOr> create_periodic_wave(Vector const& real, Vector const& imag, Optional const& constraints = {}); - WebIDL::ExceptionOr> create_script_processor(WebIDL::UnsignedLong buffer_size, - WebIDL::UnsignedLong number_of_input_channels, WebIDL::UnsignedLong number_of_output_channels); + WebIDL::ExceptionOr> create_script_processor( + WebIDL::UnsignedLong buffer_size, + WebIDL::UnsignedLong number_of_input_channels, + WebIDL::UnsignedLong number_of_output_channels); WebIDL::ExceptionOr> create_stereo_panner(); GC::Ref decode_audio_data(GC::Root, GC::Ptr, GC::Ptr); diff --git a/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp b/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp index bda758a5a2..2975cd768f 100644 --- a/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp +++ b/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp @@ -54,8 +54,11 @@ WebIDL::ExceptionOr> OfflineAudioContext::construct } // https://webaudio.github.io/web-audio-api/#dom-offlineaudiocontext-offlineaudiocontext-numberofchannels-length-samplerate -WebIDL::ExceptionOr> OfflineAudioContext::construct_impl(JS::Realm& realm, - WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate) +WebIDL::ExceptionOr> OfflineAudioContext::construct_impl( + JS::Realm& realm, + WebIDL::UnsignedLong number_of_channels, + WebIDL::UnsignedLong length, + float sample_rate) { return construct_impl(realm, { number_of_channels, length, sample_rate }); } diff --git a/Libraries/LibWeb/WebAudio/OfflineAudioContext.h b/Libraries/LibWeb/WebAudio/OfflineAudioContext.h index dc319a0547..5559804ab6 100644 --- a/Libraries/LibWeb/WebAudio/OfflineAudioContext.h +++ b/Libraries/LibWeb/WebAudio/OfflineAudioContext.h @@ -28,8 +28,11 @@ class OfflineAudioContext final : public BaseAudioContext { public: static WebIDL::ExceptionOr> construct_impl(JS::Realm&, OfflineAudioContextOptions const&); - static WebIDL::ExceptionOr> construct_impl(JS::Realm&, - WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate); + static WebIDL::ExceptionOr> construct_impl( + JS::Realm&, + WebIDL::UnsignedLong number_of_channels, + WebIDL::UnsignedLong length, + float sample_rate); virtual ~OfflineAudioContext() override; diff --git a/Libraries/LibWeb/WebAudio/ScriptProcessorNode.cpp b/Libraries/LibWeb/WebAudio/ScriptProcessorNode.cpp index fb8b6671f9..89a1e59907 100644 --- a/Libraries/LibWeb/WebAudio/ScriptProcessorNode.cpp +++ b/Libraries/LibWeb/WebAudio/ScriptProcessorNode.cpp @@ -26,8 +26,11 @@ ScriptProcessorNode::ScriptProcessorNode(JS::Realm& realm, GC::Ref> ScriptProcessorNode::create(JS::Realm& realm, - GC::Ref context, WebIDL::Long buffer_size, WebIDL::UnsignedLong number_of_input_channels, +WebIDL::ExceptionOr> ScriptProcessorNode::create( + JS::Realm& realm, + GC::Ref context, + WebIDL::Long buffer_size, + WebIDL::UnsignedLong number_of_input_channels, WebIDL::UnsignedLong number_of_output_channels) { // https://webaudio.github.io/web-audio-api/#ScriptProcessorNode diff --git a/Libraries/LibWeb/WebAudio/ScriptProcessorNode.h b/Libraries/LibWeb/WebAudio/ScriptProcessorNode.h index 78f2788cd8..6b7a03ab7f 100644 --- a/Libraries/LibWeb/WebAudio/ScriptProcessorNode.h +++ b/Libraries/LibWeb/WebAudio/ScriptProcessorNode.h @@ -20,8 +20,11 @@ public: virtual ~ScriptProcessorNode() override; - static WebIDL::ExceptionOr> create(JS::Realm&, GC::Ref, - WebIDL::Long buffer_size, WebIDL::UnsignedLong number_of_input_channels, + static WebIDL::ExceptionOr> create( + JS::Realm&, + GC::Ref, + WebIDL::Long buffer_size, + WebIDL::UnsignedLong number_of_input_channels, WebIDL::UnsignedLong number_of_output_channel); // ^AudioNode @@ -38,8 +41,7 @@ public: WebIDL::ExceptionOr set_buffer_size(WebIDL::Long buffer_size); private: - ScriptProcessorNode(JS::Realm&, GC::Ref, u8 number_of_input_channels, - u8 number_of_output_channels); + ScriptProcessorNode(JS::Realm&, GC::Ref, u8 number_of_input_channels, u8 number_of_output_channels); virtual void initialize(JS::Realm&) override; diff --git a/Tests/LibWeb/test-web/Fuzzy.cpp b/Tests/LibWeb/test-web/Fuzzy.cpp index 4638ecc036..b9b54ecac9 100644 --- a/Tests/LibWeb/test-web/Fuzzy.cpp +++ b/Tests/LibWeb/test-web/Fuzzy.cpp @@ -14,8 +14,13 @@ namespace TestWeb { // https://web-platform-tests.org/writing-tests/reftests.html#fuzzy-matching -bool fuzzy_screenshot_match(URL::URL const& test_url, URL::URL const& reference, Gfx::Bitmap const& bitmap_a, - Gfx::Bitmap const& bitmap_b, ReadonlySpan fuzzy_matches, bool should_match) +bool fuzzy_screenshot_match( + URL::URL const& test_url, + URL::URL const& reference, + Gfx::Bitmap const& bitmap_a, + Gfx::Bitmap const& bitmap_b, + ReadonlySpan fuzzy_matches, + bool should_match) { if (bitmap_a.width() != bitmap_b.width() || bitmap_a.height() != bitmap_b.height()) return false; diff --git a/Tests/LibWeb/test-web/Fuzzy.h b/Tests/LibWeb/test-web/Fuzzy.h index aad8b7116e..cb583fdce1 100644 --- a/Tests/LibWeb/test-web/Fuzzy.h +++ b/Tests/LibWeb/test-web/Fuzzy.h @@ -28,8 +28,13 @@ struct FuzzyMatch { FuzzyRange pixel_error_count; }; -bool fuzzy_screenshot_match(URL::URL const& test_url, URL::URL const& reference, Gfx::Bitmap const&, - Gfx::Bitmap const&, ReadonlySpan, bool should_match); +bool fuzzy_screenshot_match( + URL::URL const& test_url, + URL::URL const& reference, + Gfx::Bitmap const&, + Gfx::Bitmap const&, + ReadonlySpan, + bool should_match); ErrorOr parse_fuzzy_match(Optional reference, String const&); ErrorOr parse_fuzzy_range(String const&); diff --git a/UI/Qt/TVGIconEngine.h b/UI/Qt/TVGIconEngine.h index 91dce14c11..b47ab366d9 100644 --- a/UI/Qt/TVGIconEngine.h +++ b/UI/Qt/TVGIconEngine.h @@ -24,11 +24,9 @@ public: static TVGIconEngine* from_file(QString const& path); - void paint(QPainter* painter, QRect const& rect, QIcon::Mode mode, - QIcon::State state) override; + void paint(QPainter* painter, QRect const& rect, QIcon::Mode mode, QIcon::State state) override; QIconEngine* clone() const override; - QPixmap pixmap(QSize const& size, QIcon::Mode mode, - QIcon::State state) override; + QPixmap pixmap(QSize const& size, QIcon::Mode mode, QIcon::State state) override; void add_filter(QIcon::Mode mode, Function filter);