mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
LibWeb: Mark SVG::NumberPercentage accessors as const
This commit is contained in:
parent
cf0e31ca87
commit
3d54b9ffa3
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/3d54b9ffa3 Pull-request: https://github.com/SerenityOS/serenity/pull/18617 Reviewed-by: https://github.com/gmta
@ -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;
|
||||
|
@ -111,9 +111,9 @@ public:
|
||||
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:
|
||||
float m_value;
|
||||
|
Loading…
Reference in New Issue
Block a user