mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
LibWeb/CSS: Use FlyString for CSSStyleValue property name
This commit is contained in:
parent
a8312bf571
commit
a30afafcc9
Notes:
github-actions[bot]
2025-10-02 12:48:24 +00:00
Author: https://github.com/AtkinsSJ
Commit: a30afafcc9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6310
22 changed files with 32 additions and 31 deletions
|
@ -349,7 +349,7 @@ Vector<Parser::ComponentValue> KeywordStyleValue::tokenize() const
|
|||
}
|
||||
|
||||
// https://drafts.css-houdini.org/css-typed-om-1/#reify-ident
|
||||
GC::Ref<CSSStyleValue> KeywordStyleValue::reify(JS::Realm& realm, String const&) const
|
||||
GC::Ref<CSSStyleValue> KeywordStyleValue::reify(JS::Realm& realm, FlyString const&) const
|
||||
{
|
||||
// 1. Return a new CSSKeywordValue with its value internal slot set to the serialization of ident.
|
||||
return CSSKeywordValue::create(realm, FlyString::from_utf8_without_validation(string_from_keyword(m_keyword).bytes()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue