Browse Source

LibWeb: Initialize BoxShadowData lengths to 0px instead of undefined

Sam Atkins 3 năm trước cách đây
mục cha
commit
2df8d9c609

+ 4 - 4
Userland/Libraries/LibWeb/CSS/ComputedValues.h

@@ -77,10 +77,10 @@ struct FlexBasisData {
 
 
 struct BoxShadowData {
 struct BoxShadowData {
     Color color {};
     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 };
     CSS::BoxShadowPlacement placement { CSS::BoxShadowPlacement::Outer };
 };
 };