Everywhere: Fix even more typos

This commit is contained in:
Viktor Szépe 2025-08-26 11:00:23 +00:00 committed by Jelle Raaijmakers
commit 1c01e183b7
Notes: github-actions[bot] 2025-08-27 06:49:03 +00:00
31 changed files with 43 additions and 43 deletions

View file

@ -47,8 +47,8 @@ StringView::StringView(ByteBuffer const& buffer)
Vector<StringView> 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> StringView::split_view(StringView separator, SplitBehavior split_behavior) const

View file

@ -153,8 +153,8 @@ public:
template<typename Callback>
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<typename Callback>

View file

@ -9,7 +9,7 @@
#if __has_include(<swift/bridging>)
# include <swift/bridging>
// 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

View file

@ -270,8 +270,8 @@ Optional<size_t> Utf16View::find_code_unit_offset(char16_t needle, size_t start_
Vector<Utf16View> 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> Utf16View::split_view(Utf16View const& separator, SplitBehavior split_behavior) const

View file

@ -603,8 +603,8 @@ public:
template<typename Callback>
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>(callback));
Utf16View separator_view { &separator, 1 };
for_each_split_view(separator_view, split_behavior, forward<Callback>(callback));
}
template<typename Callback>

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -155,7 +155,7 @@ public:
[[nodiscard]] RuleCache const& get_pseudo_class_rule_cache(PseudoClass) const;
[[nodiscard]] Vector<MatchingRule const*> collect_matching_rules(DOM::Element const&, CascadeOrigin, Optional<CSS::PseudoElement>, PseudoClassBitmap& attempted_psuedo_class_matches, Optional<FlyString const> qualified_layer_name = {}) const;
[[nodiscard]] Vector<MatchingRule const*> collect_matching_rules(DOM::Element const&, CascadeOrigin, Optional<CSS::PseudoElement>, PseudoClassBitmap& attempted_pseudo_class_matches, Optional<FlyString const> qualified_layer_name = {}) const;
InvalidationSet invalidation_set_for_properties(Vector<InvalidationSet::Property> const&) const;
bool invalidation_property_used_in_has_selector(InvalidationSet::Property const&) const;

View file

@ -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)

View file

@ -9,7 +9,7 @@
#include <AK/Endian.h>
#include <AK/IPv4Address.h>
TEST_CASE(should_default_contructor_with_0s)
TEST_CASE(should_default_constructor_with_0s)
{
constexpr IPv4Address addr {};

View file

@ -9,7 +9,7 @@
#include <AK/Endian.h>
#include <AK/IPv6Address.h>
TEST_CASE(should_default_contructor_with_0s)
TEST_CASE(should_default_constructor_with_0s)
{
constexpr IPv6Address addr {};

View file

@ -35,7 +35,7 @@ TEST_CASE(sorts_ascending)
}
}
TEST_CASE(sorts_decending)
TEST_CASE(sorts_descending)
{
srand(seed);

View file

@ -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()));

View file

@ -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()));

View file

@ -35,8 +35,8 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <input#placeholder> at (9,36) content-size 200x25 inline-block [BFC] children: not-inline
Box <div> at (11,37) content-size 196x23 flex-container(row) [FFC] children: not-inline
BlockContainer <div> 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 <div> 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<DIV>) [433,9 200x25]
PaintableWithLines (BlockContainer<DIV>) [435,10 196x23]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<INPUT>#placeholder) [8,35 202x27] overflow: [9,36 409.859375x26]
PaintableBox (Box<DIV>) [9,36 200x25] overflow: [9,36 409.859375x26]
PaintableWithLines (BlockContainer<DIV>) [11,37 196x23] overflow: [11,37 407.859375x23]
PaintableWithLines (BlockContainer<INPUT>#placeholder) [8,35 202x27] overflow: [9,36 398.171875x26]
PaintableBox (Box<DIV>) [9,36 200x25] overflow: [9,36 398.171875x26]
PaintableWithLines (BlockContainer<DIV>) [11,37 196x23] overflow: [11,37 396.171875x23]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>) [207,37 0x23]

View file

@ -12,6 +12,6 @@ input {
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
let input = document.querySelector("#placeholder");
input.placeholder = "This placeholder should also be visisble";
input.placeholder = "This placeholder should also be visible";
});
</script>

View file

@ -3,7 +3,7 @@
<head>
<link
rel="match"
href="../expected/paintable-visiblity-after-opacity-change-from-zero-ref.html"
href="../expected/paintable-visibility-after-opacity-change-from-zero-ref.html"
/>
<style>
#foo {

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<html style="color: rgb(calc(255 * sign(1em - 1px)) 0 0)">
<link rel="match" href="../expected/stop-color-non-trival-ref.html" />
<link rel="match" href="../expected/stop-color-non-trivial-ref.html" />
<svg viewBox="0 0 10 10">
<defs>
<linearGradient id="myGradient">

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<title>flexbox | first-letter</title>
<meta name="assert" content="This test is ensures that flexbox placement does not apply to ::first-letter psuedo-content">
<meta name="assert" content="This test is ensures that flexbox placement does not apply to ::first-letter pseudo-content">
<link rel="author" title="Vince Falconi" href="vince.falconi@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#placement">
<style>

View file

@ -16,7 +16,7 @@ using InfoBarDismissed = void (^)(void);
- (void)showWithMessage:(NSString*)message
dismissButtonTitle:(NSString*)title
dismissButtonClicked:(InfoBarDismissed)on_dimissed
dismissButtonClicked:(InfoBarDismissed)on_dismissed
activeTab:(Tab*)tab;
- (void)hide;

View file

@ -17,7 +17,7 @@ static constexpr CGFloat const INFO_BAR_HEIGHT = 40;
@property (nonatomic, strong) NSTextField* text_label;
@property (nonatomic, strong) NSButton* dismiss_button;
@property (nonatomic, copy) InfoBarDismissed on_dimissed;
@property (nonatomic, copy) InfoBarDismissed on_dismissed;
@end
@ -47,13 +47,13 @@ static constexpr CGFloat const INFO_BAR_HEIGHT = 40;
- (void)showWithMessage:(NSString*)message
dismissButtonTitle:(NSString*)title
dismissButtonClicked:(InfoBarDismissed)on_dimissed
dismissButtonClicked:(InfoBarDismissed)on_dismissed
activeTab:(Tab*)tab
{
[self.text_label setStringValue:message];
self.dismiss_button.title = title;
self.on_dimissed = on_dimissed;
self.on_dismissed = on_dismissed;
if (tab) {
[self attachToTab:tab];
@ -64,8 +64,8 @@ static constexpr CGFloat const INFO_BAR_HEIGHT = 40;
- (void)dismiss:(id)sender
{
if (self.on_dimissed) {
self.on_dimissed();
if (self.on_dismissed) {
self.on_dismissed();
}
[self hide];

View file

@ -76,7 +76,7 @@ static ErrorOr<void> move_alpha_to_rgb(LoadedImage& image)
return Error::from_string_literal("Can't --move-alpha-to-rgb with invalid bitmaps");
case Gfx::BitmapFormat::RGBA8888:
// No image decoder currently produces bitmaps with this format.
// If that ever changes, preferrably fix the image decoder to use BGRA8888 instead :)
// If that ever changes, preferably fix the image decoder to use BGRA8888 instead :)
// If there's a good reason for not doing that, implement support for this, I suppose.
return Error::from_string_literal("--move-alpha-to-rgb not implemented for RGBA8888");
case Gfx::BitmapFormat::BGRA8888:
@ -105,7 +105,7 @@ static ErrorOr<void> strip_alpha(LoadedImage& image)
return Error::from_string_literal("Can't --strip-alpha with invalid bitmaps");
case Gfx::BitmapFormat::RGBA8888:
// No image decoder currently produces bitmaps with this format.
// If that ever changes, preferrably fix the image decoder to use BGRA8888 instead :)
// If that ever changes, preferably fix the image decoder to use BGRA8888 instead :)
// If there's a good reason for not doing that, implement support for this, I suppose.
return Error::from_string_literal("--strip-alpha not implemented for RGBA8888");
case Gfx::BitmapFormat::BGRA8888: