mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
LibWeb: Remove default Length constructor and add make_auto()/make_px()
To prepare for adding an undefined/empty state for Length, let's first move away from Length() creating an auto value.
This commit is contained in:
parent
26eef65017
commit
5744dd43c5
7 changed files with 60 additions and 58 deletions
|
@ -279,7 +279,7 @@ NonnullRefPtr<StyleValue> parse_css_value(const StringView& string)
|
|||
if (string.equals_ignoring_case("initial"))
|
||||
return InitialStyleValue::create();
|
||||
if (string.equals_ignoring_case("auto"))
|
||||
return LengthStyleValue::create(Length());
|
||||
return LengthStyleValue::create(Length::make_auto());
|
||||
|
||||
auto color = parse_css_color(string);
|
||||
if (color.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue