1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

LibWeb: Allow calculated values in transform

This commit is contained in:
stelar7 2023-05-27 19:21:42 +02:00 committed by Andreas Kling
parent e23d31ae83
commit 344f37986f
3 changed files with 17 additions and 4 deletions

View file

@ -745,7 +745,7 @@ Optional<Time> CalculatedStyleValue::resolve_time_percentage(Time const& percent
});
}
Optional<float> CalculatedStyleValue::resolve_number()
Optional<float> CalculatedStyleValue::resolve_number() const
{
auto result = m_calculation->resolve(nullptr, {});
if (result.value().has<Number>())