LibWeb/CSS: Extract SerializationMode into its own header

Prep for using this to serialize dimension types, and perhaps other
things in the future.
This commit is contained in:
Sam Atkins 2025-05-16 19:20:24 +01:00 committed by Tim Ledbetter
commit eec4365542
Notes: github-actions[bot] 2025-05-17 06:54:49 +00:00
26 changed files with 112 additions and 99 deletions

View file

@ -34,10 +34,10 @@ public:
auto font_size = font_style_value.longhand(CSS::PropertyID::FontSize);
auto font_family = font_style_value.longhand(CSS::PropertyID::FontFamily);
return ByteString::formatted("{} {} {} {}",
font_style->to_string(CSS::CSSStyleValue::SerializationMode::Normal),
font_weight->to_string(CSS::CSSStyleValue::SerializationMode::Normal),
font_size->to_string(CSS::CSSStyleValue::SerializationMode::Normal),
font_family->to_string(CSS::CSSStyleValue::SerializationMode::Normal));
font_style->to_string(CSS::SerializationMode::Normal),
font_weight->to_string(CSS::SerializationMode::Normal),
font_size->to_string(CSS::SerializationMode::Normal),
font_family->to_string(CSS::SerializationMode::Normal));
}
void set_font(StringView font)