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

LibWeb: Add helper to convert CSS LengthPercentage to SVGLength

This commit is contained in:
MacDue 2024-03-03 20:33:40 +00:00 committed by Andreas Kling
parent 4f78ddd6a2
commit 344eb98b3c
2 changed files with 50 additions and 0 deletions

View file

@ -25,6 +25,8 @@ public:
float value() const { return m_value; }
WebIDL::ExceptionOr<void> set_value(float value);
[[nodiscard]] static JS::NonnullGCPtr<SVGLength> from_length_percentage(JS::Realm&, CSS::LengthPercentage const&);
private:
SVGLength(JS::Realm&, u8 unit_type, float value);