mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibWeb: Make border-radius attibutes accessible
This commit is contained in:
parent
0c261a1c95
commit
499934a848
Notes:
sideshowbarker
2024-07-18 17:41:35 +09:00
Author: https://github.com/TobyAsE
Commit: 499934a848
Pull-request: https://github.com/SerenityOS/serenity/pull/7115
Reviewed-by: https://github.com/awesomekling
2 changed files with 29 additions and 0 deletions
|
@ -226,6 +226,22 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
|
|||
m_background_image = static_ptr_cast<CSS::ImageStyleValue>(bgimage.value());
|
||||
}
|
||||
|
||||
auto border_bottom_left_radius = specified_style.property(CSS::PropertyID::BorderBottomLeftRadius);
|
||||
if (border_bottom_left_radius.has_value())
|
||||
computed_values.set_border_bottom_left_radius(border_bottom_left_radius.value()->to_length());
|
||||
|
||||
auto border_bottom_right_radius = specified_style.property(CSS::PropertyID::BorderBottomRightRadius);
|
||||
if (border_bottom_right_radius.has_value())
|
||||
computed_values.set_border_bottom_right_radius(border_bottom_right_radius.value()->to_length());
|
||||
|
||||
auto border_top_left_radius = specified_style.property(CSS::PropertyID::BorderTopLeftRadius);
|
||||
if (border_top_left_radius.has_value())
|
||||
computed_values.set_border_top_left_radius(border_top_left_radius.value()->to_length());
|
||||
|
||||
auto border_top_right_radius = specified_style.property(CSS::PropertyID::BorderTopRightRadius);
|
||||
if (border_top_right_radius.has_value())
|
||||
computed_values.set_border_top_right_radius(border_top_right_radius.value()->to_length());
|
||||
|
||||
auto background_repeat_x = specified_style.background_repeat_x();
|
||||
if (background_repeat_x.has_value())
|
||||
computed_values.set_background_repeat_x(background_repeat_x.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue