summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Size.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-25 19:09:08 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-29 18:33:41 +0200
commit6b2ce2ccc3158d76f7ec2c0ac4164de01c2cda6f (patch)
tree8c041b15fd4061be1c14aa72a132aeb7394eaccf /Userland/Libraries/LibWeb/CSS/Size.h
parent58a44036a9ffd5880d89cf631f93c2649e48a173 (diff)
downloadserenity-6b2ce2ccc3158d76f7ec2c0ac4164de01c2cda6f.zip
LibWeb: Add CSS::Size::make_px(float) convenience helper
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Size.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Size.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Size.h b/Userland/Libraries/LibWeb/CSS/Size.h
index bf031d08dc..31852807fb 100644
--- a/Userland/Libraries/LibWeb/CSS/Size.h
+++ b/Userland/Libraries/LibWeb/CSS/Size.h
@@ -24,6 +24,7 @@ public:
};
static Size make_auto();
+ static Size make_px(float);
static Size make_length(Length);
static Size make_percentage(Percentage);
static Size make_min_content();