1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +00:00

LibWeb: Replace all px Length creation with Length::make_px(CSSPixels)

This commit is contained in:
Sam Atkins 2022-11-08 16:58:15 +00:00 committed by Linus Groh
parent 13b1952929
commit 7d40e3eb0d
5 changed files with 4 additions and 16 deletions

View file

@ -41,11 +41,9 @@ public:
// this file already. To break the cyclic dependency, we must move all method definitions out.
Length(int value, Type type);
Length(float value, Type type);
Length(CSSPixels value, Type type);
~Length();
static Length make_auto();
static Length make_px(float value);
static Length make_px(CSSPixels value);
static Length make_calculated(NonnullRefPtr<CalculatedStyleValue>);
Length percentage_of(Percentage const&) const;