LibWeb: Initialize BoxShadowData lengths to 0px instead of undefined

This commit is contained in:
Sam Atkins 2022-02-18 14:47:15 +00:00 committed by Andreas Kling
commit 2df8d9c609
Notes: sideshowbarker 2024-07-17 18:34:46 +09:00

View file

@ -77,10 +77,10 @@ struct FlexBasisData {
struct BoxShadowData {
Color color {};
CSS::Length offset_x {};
CSS::Length offset_y {};
CSS::Length blur_radius {};
CSS::Length spread_distance {};
CSS::Length offset_x { Length::make_px(0) };
CSS::Length offset_y { Length::make_px(0) };
CSS::Length blur_radius { Length::make_px(0) };
CSS::Length spread_distance { Length::make_px(0) };
CSS::BoxShadowPlacement placement { CSS::BoxShadowPlacement::Outer };
};