mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Replace all px Length creation with Length::make_px(CSSPixels)
This commit is contained in:
parent
13b1952929
commit
7d40e3eb0d
Notes:
sideshowbarker
2024-07-17 02:08:24 +09:00
Author: https://github.com/AtkinsSJ
Commit: 7d40e3eb0d
Pull-request: https://github.com/SerenityOS/serenity/pull/16514
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/linusg ✅
5 changed files with 4 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue