Skip to content

Commit

Permalink
chore: remove redundant words
Browse files Browse the repository at this point in the history
Signed-off-by: zoupingshi <[email protected]>
  • Loading branch information
zoupingshi committed Feb 8, 2025
1 parent 4ccf165 commit 23ed044
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Libraries/LibURL/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ Optional<URL> Parser::basic_parse(StringView raw_input, Optional<URL const&> bas
}
// 6. Otherwise, if url is special, base is non-null, and base’s scheme is url’s scheme:
else if (url->is_special() && base_url.has_value() && base_url->scheme() == url->m_data->scheme) {
// 1. Assert: base is is special (and therefore does not have an opaque path).
// 1. Assert: base is special (and therefore does not have an opaque path).
VERIFY(base_url->is_special());

// 2. Set state to special relative or authority state.
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibWeb/CSS/CSSStyleSheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ WebIDL::ExceptionOr<GC::Ref<CSSStyleSheet>> CSSStyleSheet::construct_impl(JS::Re
// 6. Set sheet’s owner CSS rule to null.
sheet->set_owner_css_rule(nullptr);

// 7. Set sheet’s title to the the empty string.
// 7. Set sheet’s title to the empty string.
sheet->set_title(String {});

// 8. Unset sheet’s alternate flag.
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibWeb/DOM/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5428,7 +5428,7 @@ GC::Ptr<Element const> Document::scrolling_element() const
// 1. If the Document is in quirks mode, follow these substeps:
if (in_quirks_mode()) {
// 1. If the body element exists, and it is not potentially scrollable, return the body element and abort these steps.
// For this purpose, a value of overflow:clip on the the body element’s parent element must be treated as overflow:hidden.
// For this purpose, a value of overflow:clip on the body element’s parent element must be treated as overflow:hidden.
if (auto const* body_element = body(); body_element && !body_element->is_potentially_scrollable())
return body_element;

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibWeb/DOM/ElementFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ WebIDL::ExceptionOr<GC::Ref<Element>> create_element(Document& document, FlyStri
element->set_is_value(move(is_value));
element->set_custom_element_state(CustomElementState::Uncustomized);

// 3. If namespace is the HTML namespace, and either localName is a valid custom element name or is is non-null,
// 3. If namespace is the HTML namespace, and either localName is a valid custom element name or is non-null,
// then set result’s custom element state to "undefined".
if (HTML::is_valid_custom_element_name(local_name) || is_value.has_value())
element->set_custom_element_state(CustomElementState::Undefined);
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibWeb/FileAPI/Blob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ GC::Ref<Blob> Blob::create(JS::Realm& realm, ByteBuffer byte_buffer, String type
// https://w3c.github.io/FileAPI/#convert-line-endings-to-native
ErrorOr<String> convert_line_endings_to_native(StringView string)
{
// 1. Let native line ending be be the code point U+000A LF.
// 1. Let native line ending be the code point U+000A LF.
auto native_line_ending = "\n"sv;

// 2. If the underlying platform’s conventions are to represent newlines as a carriage return and line feed sequence, set native line ending to the code point U+000D CR followed by the code point U+000A LF.
Expand Down
4 changes: 2 additions & 2 deletions Libraries/LibWeb/HTML/HTMLCanvasElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static ErrorOr<SerializeBitmapResult> serialize_bitmap(Gfx::Bitmap const& bitmap
// https://html.spec.whatwg.org/multipage/canvas.html#dom-canvas-todataurl
String HTMLCanvasElement::to_data_url(StringView type, JS::Value quality)
{
// It is possible the the canvas doesn't have a associated bitmap so create one
// It is possible the canvas doesn't have a associated bitmap so create one
allocate_painting_surface_if_needed();
auto surface = this->surface();
auto size = bitmap_size_for_canvas();
Expand Down Expand Up @@ -356,7 +356,7 @@ String HTMLCanvasElement::to_data_url(StringView type, JS::Value quality)
// https://html.spec.whatwg.org/multipage/canvas.html#dom-canvas-toblob
WebIDL::ExceptionOr<void> HTMLCanvasElement::to_blob(GC::Ref<WebIDL::CallbackType> callback, StringView type, JS::Value quality)
{
// It is possible the the canvas doesn't have a associated bitmap so create one
// It is possible the canvas doesn't have a associated bitmap so create one
allocate_painting_surface_if_needed();
auto surface = this->surface();
auto size = bitmap_size_for_canvas();
Expand Down
2 changes: 1 addition & 1 deletion Tests/LibWeb/Text/input/wpt-import/resources/testdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
/**
* Minimizes the browser window.
*
* Matches the the behaviour of the `Minimize
* Matches the behaviour of the `Minimize
* <https://www.w3.org/TR/webdriver/#minimize-window>`_
* WebDriver command
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function testAudioNodeOptions(should, context, nodeName, expectedNodeOptions) {
.throw(DOMException,
expectedNodeOptions.channelCountMode.exceptionType);
} else {
// Test that explicitly setting the the fixed value is allowed.
// Test that explicitly setting the fixed value is allowed.
should(
() => {
node = new window[nodeName](
Expand Down

0 comments on commit 23ed044

Please sign in to comment.