mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Convert FormattingContext to new pixel units
Just FormattingContext and AvailableSpace, and the minor adjustments to make everything else work.
This commit is contained in:
parent
4754204f01
commit
f5f25562d1
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/AtkinsSJ
Commit: f5f25562d1
Pull-request: https://github.com/SerenityOS/serenity/pull/16514
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/linusg ✅
16 changed files with 174 additions and 175 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace Web::Layout {
|
||||
|
||||
AvailableSize AvailableSize::make_definite(float value)
|
||||
AvailableSize AvailableSize::make_definite(CSSPixels value)
|
||||
{
|
||||
return AvailableSize { Type::Definite, value };
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ DeprecatedString AvailableSpace::to_deprecated_string() const
|
|||
return DeprecatedString::formatted("{} x {}", width, height);
|
||||
}
|
||||
|
||||
AvailableSize::AvailableSize(Type type, float value)
|
||||
AvailableSize::AvailableSize(Type type, CSSPixels value)
|
||||
: m_type(type)
|
||||
, m_value(value)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue