mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Migrate ListItemMarkerBox's text from ByteString to String
This commit is contained in:
parent
8b52a354fa
commit
b987d53926
Notes:
github-actions[bot]
2025-02-11 09:40:28 +00:00
Author: https://github.com/AtkinsSJ
Commit: b987d53926
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3528
5 changed files with 16 additions and 15 deletions
|
@ -75,14 +75,14 @@ static String generate_a_counter_representation(CSSStyleValue const& counter_sty
|
|||
return MUST(String::formatted("{}", value));
|
||||
case ListStyleType::LowerAlpha:
|
||||
case ListStyleType::LowerLatin:
|
||||
return MUST(String::from_byte_string(ByteString::bijective_base_from(value - 1).to_lowercase()));
|
||||
return String::bijective_base_from(value - 1, String::Case::Lower);
|
||||
case ListStyleType::UpperAlpha:
|
||||
case ListStyleType::UpperLatin:
|
||||
return MUST(String::from_byte_string(ByteString::bijective_base_from(value - 1)));
|
||||
return String::bijective_base_from(value - 1, String::Case::Upper);
|
||||
case ListStyleType::LowerRoman:
|
||||
return MUST(String::from_byte_string(ByteString::roman_number_from(value).to_lowercase()));
|
||||
return String::roman_number_from(value, String::Case::Lower);
|
||||
case ListStyleType::UpperRoman:
|
||||
return MUST(String::from_byte_string(ByteString::roman_number_from(value)));
|
||||
return String::roman_number_from(value, String::Case::Upper);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue