浏览代码

LibWeb: Initialize BoxShadowData lengths to 0px instead of undefined

Sam Atkins 3 年之前
父节点
当前提交
2df8d9c609
共有 1 个文件被更改,包括 4 次插入4 次删除
  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 };
 };