mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-17 22:41:54 +00:00
LibWeb+LibGfx: Apply editorial punctuation/whitespace/markup fixes
Corresponds tod426109ea1
andfd08f81d06
This commit is contained in:
parent
a35d14eab3
commit
423cdd447d
Notes:
github-actions[bot]
2025-06-24 15:13:34 +00:00
Author: https://github.com/AtkinsSJ
Commit: 423cdd447d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5194
Reviewed-by: https://github.com/shannonbooth ✅
35 changed files with 108 additions and 103 deletions
|
@ -49,7 +49,7 @@ ImageSourceAndPixelDensity SourceSet::select_an_image_source()
|
|||
}
|
||||
}
|
||||
|
||||
// 2. In an implementation-defined manner, choose one image source from sourceSet. Let this be selectedSource.
|
||||
// 2. In an implementation-defined manner, choose one image source from sourceSet. Let selectedSource be this choice.
|
||||
// In our case, select the lowest density greater than 1, otherwise the greatest density available.
|
||||
// 3. Return selectedSource and its associated pixel density.
|
||||
|
||||
|
@ -108,7 +108,7 @@ splitting_loop:
|
|||
return candidates;
|
||||
}
|
||||
|
||||
// 6. Collect a sequence of code points that are not ASCII whitespace from input given position, and let that be url.
|
||||
// 6. Collect a sequence of code points that are not ASCII whitespace from input given position, and let url be that result.
|
||||
auto url = collect_a_sequence_of_code_points(
|
||||
[](u32 code_point) { return !Infra::is_ascii_whitespace(code_point); },
|
||||
input, position);
|
||||
|
@ -357,7 +357,7 @@ SourceSet SourceSet::create(DOM::Element const& element, String const& default_s
|
|||
if (!srcset.is_empty())
|
||||
source_set = parse_a_srcset_attribute(srcset);
|
||||
|
||||
// 3. Let source size be the result of parsing sizes with img.
|
||||
// 3. Set source set's source size to the result of parsing sizes with img.
|
||||
source_set.m_source_size = parse_a_sizes_attribute(element, sizes, img);
|
||||
|
||||
// 4. If default source is not the empty string and source set does not contain an image source
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue