Browse Source

LibWeb: Initialize BoxShadowData lengths to 0px instead of undefined

Sam Atkins 3 years ago
parent
commit
2df8d9c609
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Userland/Libraries/LibWeb/CSS/ComputedValues.h

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

@@ -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 };
 };