mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Move SVGLength
unit constants to header
No behaviour change.
This commit is contained in:
parent
d2918b8204
commit
bafb6bd059
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/MacDue
Commit: bafb6bd059
Pull-request: https://github.com/SerenityOS/serenity/pull/23793
Reviewed-by: https://github.com/shannonbooth
2 changed files with 13 additions and 13 deletions
|
@ -12,19 +12,6 @@ namespace Web::SVG {
|
|||
|
||||
JS_DEFINE_ALLOCATOR(SVGLength);
|
||||
|
||||
// Same as SVGLength.idl
|
||||
constexpr unsigned short SVG_LENGTHTYPE_UNKNOWN = 0;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_NUMBER = 1;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_EMS = 3;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_EXS = 4;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_PX = 5;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_CM = 6;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_MM = 7;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_IN = 8;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_PT = 9;
|
||||
constexpr unsigned short SVG_LENGTHTYPE_PC = 10;
|
||||
|
||||
JS::NonnullGCPtr<SVGLength> SVGLength::create(JS::Realm& realm, u8 unit_type, float value)
|
||||
{
|
||||
return realm.heap().allocate<SVGLength>(realm, realm, unit_type, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue