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:
parent
4f78ddd6a2
commit
344eb98b3c
2 changed files with 50 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue