mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
AK: Rename Utf16View::trim_whitespace() to ::trim_ascii_whitespace()
This reflects the naming of String::trim_ascii_whitespace() and better indicates what exactly we're trimming.
This commit is contained in:
parent
e029e785d2
commit
b1c3ce807b
Notes:
github-actions[bot]
2025-07-24 11:19:36 +00:00
Author: https://github.com/gmta
Commit: b1c3ce807b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5574
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 4 additions and 4 deletions
|
@ -512,7 +512,7 @@ enum class FontSizeMode : u8 {
|
|||
bool command_font_size_action(DOM::Document& document, Utf16View const& value)
|
||||
{
|
||||
// 1. Strip leading and trailing whitespace from value.
|
||||
auto resulting_value = value.trim_whitespace();
|
||||
auto resulting_value = value.trim_ascii_whitespace();
|
||||
|
||||
// 2. If value is not a valid floating point number, and would not be a valid floating point number if a single
|
||||
// leading "+" character were stripped, return false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue