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

LibWeb: Mark SVG::NumberPercentage accessors as const

This commit is contained in:
MacDue 2023-05-02 22:39:07 +01:00 committed by Andreas Kling
parent cf0e31ca87
commit 3d54b9ffa3
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ Optional<float> AttributeParser::parse_length(StringView input)
return {};
}
float NumberPercentage::resolve_relative_to(float length)
float NumberPercentage::resolve_relative_to(float length) const
{
if (!m_is_percentage)
return m_value;