mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibWeb: Mark SVG::NumberPercentage accessors as const
This commit is contained in:
parent
cf0e31ca87
commit
3d54b9ffa3
2 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ Optional<float> AttributeParser::parse_length(StringView input)
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
float NumberPercentage::resolve_relative_to(float length)
|
float NumberPercentage::resolve_relative_to(float length) const
|
||||||
{
|
{
|
||||||
if (!m_is_percentage)
|
if (!m_is_percentage)
|
||||||
return m_value;
|
return m_value;
|
||||||
|
|
|
@ -111,9 +111,9 @@ public:
|
||||||
return NumberPercentage(value, false);
|
return NumberPercentage(value, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
float resolve_relative_to(float length);
|
float resolve_relative_to(float length) const;
|
||||||
|
|
||||||
float value() { return m_value; }
|
float value() const { return m_value; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float m_value;
|
float m_value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue