mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibURL+LibWeb+Tests: Remove redundant words
This commit is contained in:
parent
d5be18617e
commit
b609d8481a
Notes:
github-actions[bot]
2025-02-27 10:36:40 +00:00
Author: https://github.com/zoupingshi 🔰
Commit: b609d8481a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3503
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Psychpsyo
6 changed files with 7 additions and 7 deletions
|
@ -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.
|
||||
|
|
|
@ -62,7 +62,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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -317,7 +317,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();
|
||||
|
@ -357,7 +357,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();
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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](
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue