From 2df8d9c60951cda5ed63c74cae2247c46ea75eee Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 18 Feb 2022 14:47:15 +0000 Subject: [PATCH] LibWeb: Initialize BoxShadowData lengths to 0px instead of undefined --- Userland/Libraries/LibWeb/CSS/ComputedValues.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/ComputedValues.h b/Userland/Libraries/LibWeb/CSS/ComputedValues.h index ed2eefae01..f9444e8758 100644 --- a/Userland/Libraries/LibWeb/CSS/ComputedValues.h +++ b/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 }; };