mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
LibWeb: Store BorderRadiusStyleValue
sub-values directly
Storing these within LengthPercentage is unnecessary
This commit is contained in:
parent
2ebf446cbf
commit
25192d3c20
Notes:
github-actions[bot]
2025-10-07 09:51:15 +00:00
Author: https://github.com/Calme1709
Commit: 25192d3c20
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6375
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 47 additions and 61 deletions
|
@ -374,7 +374,7 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
|
|||
|
||||
auto horizontal_radius = [&](auto& style_value) -> String {
|
||||
if (style_value->is_border_radius())
|
||||
return style_value->as_border_radius().horizontal_radius().to_string(mode);
|
||||
return style_value->as_border_radius().horizontal_radius()->to_string(mode);
|
||||
return style_value->to_string(mode);
|
||||
};
|
||||
|
||||
|
@ -385,7 +385,7 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
|
|||
|
||||
auto vertical_radius = [&](auto& style_value) -> String {
|
||||
if (style_value->is_border_radius())
|
||||
return style_value->as_border_radius().vertical_radius().to_string(mode);
|
||||
return style_value->as_border_radius().vertical_radius()->to_string(mode);
|
||||
return style_value->to_string(mode);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue