From c20df751c90e58512f687f93acf6064986ccbe68 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Sun, 20 Aug 2023 13:05:23 +0100 Subject: [PATCH] LibWeb: Use correct NumericLimits in CalculatedStyleValue --- .../Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp index 7d06dda0e6..41cf50585c 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp @@ -1015,9 +1015,9 @@ CalculatedStyleValue::CalculationResult ConstantCalculationNode::resolve([[maybe return { Number(Number::Type::Number, M_PI) }; // FIXME: We need to keep track of Infinity and NaN across all nodes, since they require special handling. case CalculationNode::ConstantType::Infinity: - return { Number(Number::Type::Number, NumericLimits::max()) }; + return { Number(Number::Type::Number, NumericLimits::max()) }; case CalculationNode::ConstantType::MinusInfinity: - return { Number(Number::Type::Number, NumericLimits::lowest()) }; + return { Number(Number::Type::Number, NumericLimits::lowest()) }; case CalculationNode::ConstantType::NaN: return { Number(Number::Type::Number, NAN) }; }