mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +00:00
LibWeb: Make StyleValue::to_string() infallible
This commit is contained in:
parent
ccfe197e5a
commit
7fe97ee6c5
112 changed files with 425 additions and 430 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue