diff --git a/AK/StringView.cpp b/AK/StringView.cpp index d6039331f36..a13e9cf626a 100644 --- a/AK/StringView.cpp +++ b/AK/StringView.cpp @@ -47,8 +47,8 @@ StringView::StringView(ByteBuffer const& buffer) Vector StringView::split_view(char const separator, SplitBehavior split_behavior) const { - StringView seperator_view { &separator, 1 }; - return split_view(seperator_view, split_behavior); + StringView separator_view { &separator, 1 }; + return split_view(separator_view, split_behavior); } Vector StringView::split_view(StringView separator, SplitBehavior split_behavior) const diff --git a/AK/StringView.h b/AK/StringView.h index 87e4c2fb453..10f50d20f89 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -153,8 +153,8 @@ public: template auto for_each_split_view(char separator, SplitBehavior split_behavior, Callback callback) const { - StringView seperator_view { &separator, 1 }; - return for_each_split_view(seperator_view, split_behavior, callback); + StringView separator_view { &separator, 1 }; + return for_each_split_view(separator_view, split_behavior, callback); } template diff --git a/AK/Swift.h b/AK/Swift.h index 053ec38be66..8c58f7a83dc 100644 --- a/AK/Swift.h +++ b/AK/Swift.h @@ -9,7 +9,7 @@ #if __has_include() # include // FIXME: Workaround for Xcode 14/15. When swif becomes required, we should bump the -// required Xcode verison to one that supports all the features we are using. +// required Xcode version to one that supports all the features we are using. # ifndef SWIFT_UNCHECKED_SENDABLE # define SWIFT_UNCHECKED_SENDABLE # define SWIFT_NONCOPYABLE diff --git a/AK/Utf16View.cpp b/AK/Utf16View.cpp index b1270def057..cd1bee5e650 100644 --- a/AK/Utf16View.cpp +++ b/AK/Utf16View.cpp @@ -270,8 +270,8 @@ Optional Utf16View::find_code_unit_offset(char16_t needle, size_t start_ Vector Utf16View::split_view(char16_t separator, SplitBehavior split_behavior) const { - Utf16View seperator_view { &separator, 1 }; - return split_view(seperator_view, split_behavior); + Utf16View separator_view { &separator, 1 }; + return split_view(separator_view, split_behavior); } Vector Utf16View::split_view(Utf16View const& separator, SplitBehavior split_behavior) const diff --git a/AK/Utf16View.h b/AK/Utf16View.h index 541036918c3..9aedc7fec64 100644 --- a/AK/Utf16View.h +++ b/AK/Utf16View.h @@ -603,8 +603,8 @@ public: template constexpr void for_each_split_view(char16_t separator, SplitBehavior split_behavior, Callback&& callback) const { - Utf16View seperator_view { &separator, 1 }; - for_each_split_view(seperator_view, split_behavior, forward(callback)); + Utf16View separator_view { &separator, 1 }; + for_each_split_view(separator_view, split_behavior, forward(callback)); } template diff --git a/Documentation/BuildInstructionsLadybird.md b/Documentation/BuildInstructionsLadybird.md index 4429fd9cc6d..d50cd67d7ce 100644 --- a/Documentation/BuildInstructionsLadybird.md +++ b/Documentation/BuildInstructionsLadybird.md @@ -105,7 +105,7 @@ sudo zypper install libpulse-devel The build process requires at least python3.7; openSUSE Leap only features Python 3.6 as default, so it is recommendable to install the package `python312` and create a virtual environment (venv) in this case. -A virtual enviroment can be created in your home directory and once the `source` command is issued `python3 --version` will show that the current version is python 3.12 within the virtual environment shell session. +A virtual environment can be created in your home directory and once the `source` command is issued `python3 --version` will show that the current version is python 3.12 within the virtual environment shell session. ``` python3.12 -m venv ~/python312_venv source ~/python312_venv/bin/activate diff --git a/Documentation/CSSGeneratedFiles.md b/Documentation/CSSGeneratedFiles.md index 5ba03fc726d..474e6efb2f4 100644 --- a/Documentation/CSSGeneratedFiles.md +++ b/Documentation/CSSGeneratedFiles.md @@ -198,10 +198,10 @@ The generated code provides: - The `PseudoClassMetadata` struct which holds a representation of the data from the JSON file - `PseudoClassMetadata pseudo_class_metadata(PseudoClass)` to retrieve that data -## PsuedoElements.json +## PseudoElements.json This is a single JSON object, with pseudo-element names as keys and the values being objects with fields for the pseudo-element. -This generated `PsuedoElement.h` and `PseudoElement.cpp`. +This generated `PseudoElement.h` and `PseudoElement.cpp`. Each entry has the following properties: diff --git a/Documentation/EditorConfiguration/NvimConfiguration.md b/Documentation/EditorConfiguration/NvimConfiguration.md index ac4f0af41ea..d096bbeff1d 100644 --- a/Documentation/EditorConfiguration/NvimConfiguration.md +++ b/Documentation/EditorConfiguration/NvimConfiguration.md @@ -22,7 +22,7 @@ require('lspconfig').clangd.setup { -- you can delete this line. -- on_attach = ..., - -- This is where you'd put capabilities (i.e. if you're useing nvim-cmp) + -- This is where you'd put capabilities (i.e. if you're using nvim-cmp) -- capabilities = ..., -- If you have another clangd installation, put it here. Note that we use diff --git a/Libraries/LibWeb/CSS/StyleComputer.h b/Libraries/LibWeb/CSS/StyleComputer.h index a68e6e8fc78..22a04039495 100644 --- a/Libraries/LibWeb/CSS/StyleComputer.h +++ b/Libraries/LibWeb/CSS/StyleComputer.h @@ -155,7 +155,7 @@ public: [[nodiscard]] RuleCache const& get_pseudo_class_rule_cache(PseudoClass) const; - [[nodiscard]] Vector collect_matching_rules(DOM::Element const&, CascadeOrigin, Optional, PseudoClassBitmap& attempted_psuedo_class_matches, Optional qualified_layer_name = {}) const; + [[nodiscard]] Vector collect_matching_rules(DOM::Element const&, CascadeOrigin, Optional, PseudoClassBitmap& attempted_pseudo_class_matches, Optional qualified_layer_name = {}) const; InvalidationSet invalidation_set_for_properties(Vector const&) const; bool invalidation_property_used_in_has_selector(InvalidationSet::Property const&) const; diff --git a/Tests/AK/TestEnumBits.cpp b/Tests/AK/TestEnumBits.cpp index bb53857e345..504f63990c2 100644 --- a/Tests/AK/TestEnumBits.cpp +++ b/Tests/AK/TestEnumBits.cpp @@ -13,15 +13,15 @@ enum class VideoIntro : u8 { Well = 0x1, Hello = 0x2, Friends = 0x4, - ExclimationMark = 0x8, - CompleteIntro = Well | Hello | Friends | ExclimationMark, + ExclamationMark = 0x8, + CompleteIntro = Well | Hello | Friends | ExclamationMark, }; AK_ENUM_BITWISE_OPERATORS(VideoIntro); TEST_CASE(bitwise_or) { - auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends | VideoIntro::ExclimationMark; + auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends | VideoIntro::ExclamationMark; EXPECT_EQ(intro, VideoIntro::CompleteIntro); } @@ -34,7 +34,7 @@ TEST_CASE(bitwise_and) TEST_CASE(bitwise_xor) { auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends; - EXPECT_EQ(intro ^ VideoIntro::CompleteIntro, VideoIntro::ExclimationMark); + EXPECT_EQ(intro ^ VideoIntro::CompleteIntro, VideoIntro::ExclamationMark); } TEST_CASE(bitwise_not) @@ -46,7 +46,7 @@ TEST_CASE(bitwise_not) TEST_CASE(bitwise_or_equal) { auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends; - EXPECT_EQ(intro |= VideoIntro::ExclimationMark, VideoIntro::CompleteIntro); + EXPECT_EQ(intro |= VideoIntro::ExclamationMark, VideoIntro::CompleteIntro); } TEST_CASE(bitwise_and_equal) @@ -58,7 +58,7 @@ TEST_CASE(bitwise_and_equal) TEST_CASE(bitwise_xor_equal) { auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends; - EXPECT_EQ(intro ^= VideoIntro::CompleteIntro, VideoIntro::ExclimationMark); + EXPECT_EQ(intro ^= VideoIntro::CompleteIntro, VideoIntro::ExclamationMark); } TEST_CASE(has_flag) diff --git a/Tests/AK/TestIPv4Address.cpp b/Tests/AK/TestIPv4Address.cpp index 564ac68b052..95675090667 100644 --- a/Tests/AK/TestIPv4Address.cpp +++ b/Tests/AK/TestIPv4Address.cpp @@ -9,7 +9,7 @@ #include #include -TEST_CASE(should_default_contructor_with_0s) +TEST_CASE(should_default_constructor_with_0s) { constexpr IPv4Address addr {}; diff --git a/Tests/AK/TestIPv6Address.cpp b/Tests/AK/TestIPv6Address.cpp index 085f9f51b71..998b7b3263d 100644 --- a/Tests/AK/TestIPv6Address.cpp +++ b/Tests/AK/TestIPv6Address.cpp @@ -9,7 +9,7 @@ #include #include -TEST_CASE(should_default_contructor_with_0s) +TEST_CASE(should_default_constructor_with_0s) { constexpr IPv6Address addr {}; diff --git a/Tests/AK/TestInsertionSort.cpp b/Tests/AK/TestInsertionSort.cpp index cbe2e833cce..8f785318833 100644 --- a/Tests/AK/TestInsertionSort.cpp +++ b/Tests/AK/TestInsertionSort.cpp @@ -35,7 +35,7 @@ TEST_CASE(sorts_ascending) } } -TEST_CASE(sorts_decending) +TEST_CASE(sorts_descending) { srand(seed); diff --git a/Tests/LibGfx/TestImageDecoder.cpp b/Tests/LibGfx/TestImageDecoder.cpp index 7ee35d68d2a..bda3bd5150b 100644 --- a/Tests/LibGfx/TestImageDecoder.cpp +++ b/Tests/LibGfx/TestImageDecoder.cpp @@ -330,7 +330,7 @@ TEST_CASE(test_jpeg_sof0_several_scans_odd_number_mcu) TRY_OR_FAIL(expect_single_frame_of_size(*plugin_decoder, { 600, 600 })); } -TEST_CASE(test_jpeg_sof2_successive_aproximation) +TEST_CASE(test_jpeg_sof2_successive_approximation) { auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("jpg/successive_approximation.jpg"sv))); EXPECT(Gfx::JPEGImageDecoderPlugin::sniff(file->bytes())); @@ -940,7 +940,7 @@ TEST_CASE(test_webp_extended_lossless) TEST_CASE(test_webp_simple_lossless_color_index_transform) { - // In addition to testing the index transform, this file also tests handling of explicity setting max_symbol. + // In addition to testing the index transform, this file also tests handling of explicitly setting max_symbol. auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("webp/Qpalette.webp"sv))); EXPECT(Gfx::WebPImageDecoderPlugin::sniff(file->bytes())); auto plugin_decoder = TRY_OR_FAIL(Gfx::WebPImageDecoderPlugin::create(file->bytes())); diff --git a/Tests/LibURL/TestURLPatternConstructorStringParser.cpp b/Tests/LibURL/TestURLPatternConstructorStringParser.cpp index e3b8806b677..60e0b1e14d8 100644 --- a/Tests/LibURL/TestURLPatternConstructorStringParser.cpp +++ b/Tests/LibURL/TestURLPatternConstructorStringParser.cpp @@ -143,7 +143,7 @@ TEST_CASE(data_url) EXPECT_EQ(result.base_url, OptionalNone {}); } -TEST_CASE(non_special_scheme_and_arbitary_hostname) +TEST_CASE(non_special_scheme_and_arbitrary_hostname) { auto input = "foo://bar"_string; auto result = MUST(URL::Pattern::ConstructorStringParser::parse(input.code_points())); diff --git a/Tests/LibWeb/Layout/expected/input-placeholder.txt b/Tests/LibWeb/Layout/expected/input-placeholder.txt index 9559a434ea1..6d57dd7acda 100644 --- a/Tests/LibWeb/Layout/expected/input-placeholder.txt +++ b/Tests/LibWeb/Layout/expected/input-placeholder.txt @@ -35,8 +35,8 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (9,36) content-size 200x25 inline-block [BFC] children: not-inline Box
at (11,37) content-size 196x23 flex-container(row) [FFC] children: not-inline BlockContainer
at (11,37) content-size 196x23 flex-item [BFC] children: inline - frag 0 from TextNode start: 0, length: 40, rect: [11,37 407.859375x23] baseline: 17.5 - "This placeholder should also be visisble" + frag 0 from TextNode start: 0, length: 39, rect: [11,37 396.171875x23] baseline: 17.5 + "This placeholder should also be visible" TextNode <#text> BlockContainer
at (207,37) content-size 0x23 flex-item [BFC] children: inline TextNode <#text> @@ -61,9 +61,9 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableBox (Box
) [433,9 200x25] PaintableWithLines (BlockContainer
) [435,10 196x23] TextPaintable (TextNode<#text>) - PaintableWithLines (BlockContainer#placeholder) [8,35 202x27] overflow: [9,36 409.859375x26] - PaintableBox (Box
) [9,36 200x25] overflow: [9,36 409.859375x26] - PaintableWithLines (BlockContainer
) [11,37 196x23] overflow: [11,37 407.859375x23] + PaintableWithLines (BlockContainer#placeholder) [8,35 202x27] overflow: [9,36 398.171875x26] + PaintableBox (Box
) [9,36 200x25] overflow: [9,36 398.171875x26] + PaintableWithLines (BlockContainer
) [11,37 196x23] overflow: [11,37 396.171875x23] TextPaintable (TextNode<#text>) PaintableWithLines (BlockContainer
) [207,37 0x23] diff --git a/Tests/LibWeb/Layout/input/input-placeholder.html b/Tests/LibWeb/Layout/input/input-placeholder.html index 8365429c789..3a08fc3f409 100644 --- a/Tests/LibWeb/Layout/input/input-placeholder.html +++ b/Tests/LibWeb/Layout/input/input-placeholder.html @@ -12,6 +12,6 @@ input { diff --git a/Tests/LibWeb/Ref/expected/paintable-visiblity-after-opacity-change-from-zero-ref.html b/Tests/LibWeb/Ref/expected/paintable-visibility-after-opacity-change-from-zero-ref.html similarity index 100% rename from Tests/LibWeb/Ref/expected/paintable-visiblity-after-opacity-change-from-zero-ref.html rename to Tests/LibWeb/Ref/expected/paintable-visibility-after-opacity-change-from-zero-ref.html diff --git a/Tests/LibWeb/Ref/expected/stop-color-non-trival-ref.html b/Tests/LibWeb/Ref/expected/stop-color-non-trivial-ref.html similarity index 100% rename from Tests/LibWeb/Ref/expected/stop-color-non-trival-ref.html rename to Tests/LibWeb/Ref/expected/stop-color-non-trivial-ref.html diff --git a/Tests/LibWeb/Ref/input/paintable-visiblity-after-opacity-change-from-zero.html b/Tests/LibWeb/Ref/input/paintable-visibility-after-opacity-change-from-zero.html similarity index 85% rename from Tests/LibWeb/Ref/input/paintable-visiblity-after-opacity-change-from-zero.html rename to Tests/LibWeb/Ref/input/paintable-visibility-after-opacity-change-from-zero.html index c1deb4574e8..2311f8a9d5a 100644 --- a/Tests/LibWeb/Ref/input/paintable-visiblity-after-opacity-change-from-zero.html +++ b/Tests/LibWeb/Ref/input/paintable-visibility-after-opacity-change-from-zero.html @@ -3,7 +3,7 @@