summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-11-08 16:58:15 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-05 17:42:31 +0100
commit7d40e3eb0d3f3335bc5de180c435e6b05a0422ab (patch)
tree596f139db8a3d5384cc49eb4d75c5ec954077f12 /Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
parent13b19529292791e96de35902041d820aac190497 (diff)
downloadserenity-7d40e3eb0d3f3335bc5de180c435e6b05a0422ab.zip
LibWeb: Replace all px Length creation with Length::make_px(CSSPixels)
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
index dbe1e8fd02..fa222c3d74 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
@@ -5028,7 +5028,7 @@ RefPtr<StyleValue> Parser::parse_flex_value(Vector<ComponentValue> const& compon
// Zero is a valid value for basis, but only if grow and shrink are already specified.
if (value->has_number() && value->to_number() == 0) {
if (flex_grow && flex_shrink && !flex_basis) {
- flex_basis = LengthStyleValue::create(Length(0, Length::Type::Px));
+ flex_basis = LengthStyleValue::create(Length::make_px(0));
continue;
}
}