mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
LibWeb: Convert CSS Token::m_unit from StringBuilder to FlyString
This value doesn't change once it's assigned to the Token, so it can be more lightweight than a StringBuilder.
This commit is contained in:
parent
9286aa77bc
commit
75e7c2c5c0
3 changed files with 7 additions and 6 deletions
|
@ -685,7 +685,7 @@ Token Tokenizer::consume_a_numeric_token()
|
|||
|
||||
auto unit = consume_a_name();
|
||||
VERIFY(!unit.is_empty() && !unit.is_whitespace());
|
||||
token.m_unit.append(unit);
|
||||
token.m_unit = move(unit);
|
||||
|
||||
return token;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue