mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb: Make StyleValue::to_string() infallible
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 05:01:20 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/7fe97ee6c5 Pull-request: https://github.com/SerenityOS/serenity/pull/20709
@@ -30,10 +30,10 @@ public:
|
||||
// On getting, the font attribute must return the serialized form of the current font of the context (with no 'line-height' component).
|
||||
auto const& font_style_value = my_drawing_state().font_style_value->as_font();
|
||||
return DeprecatedString::formatted("{} {} {} {}",
|
||||
font_style_value.font_style()->to_string().release_value_but_fixme_should_propagate_errors(),
|
||||
font_style_value.font_weight()->to_string().release_value_but_fixme_should_propagate_errors(),
|
||||
font_style_value.font_size()->to_string().release_value_but_fixme_should_propagate_errors(),
|
||||
font_style_value.font_families()->to_string().release_value_but_fixme_should_propagate_errors());
|
||||
font_style_value.font_style()->to_string(),
|
||||
font_style_value.font_weight()->to_string(),
|
||||
font_style_value.font_size()->to_string(),
|
||||
font_style_value.font_families()->to_string());
|
||||
}
|
||||
|
||||
void set_font(DeprecatedString const& font)
|
||||
|
||||
Reference in New Issue
Block a user