mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibWeb: Use correct NumericLimits in CalculatedStyleValue
This commit is contained in:
parent
1feacd4b52
commit
c20df751c9
1 changed files with 2 additions and 2 deletions
|
@ -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<float>::max()) };
|
||||
return { Number(Number::Type::Number, NumericLimits<double>::max()) };
|
||||
case CalculationNode::ConstantType::MinusInfinity:
|
||||
return { Number(Number::Type::Number, NumericLimits<float>::lowest()) };
|
||||
return { Number(Number::Type::Number, NumericLimits<double>::lowest()) };
|
||||
case CalculationNode::ConstantType::NaN:
|
||||
return { Number(Number::Type::Number, NAN) };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue