mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 20:29:42 +00:00
LibWeb: Add an "undefined" state to Length
A default-constructed Length now gives you an undefined length value, which can be used to signify the absence of a value.
This commit is contained in:
@@ -53,6 +53,8 @@ const char* Length::unit_name() const
|
||||
return "rem";
|
||||
case Type::Auto:
|
||||
return "auto";
|
||||
case Type::Undefined:
|
||||
return "undefined";
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user