1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

LibWeb: Remove vestigial resolve_definite_width/height helper functions

These functions no longer do anything interesting and just forward to
content_width/content_height. Let's make the callers use those directly
instead and remove this indirection layer.
This commit is contained in:
Andreas Kling 2023-05-01 17:49:31 +02:00
parent e98315de6b
commit deea7cbc11
4 changed files with 6 additions and 31 deletions

View file

@ -354,16 +354,6 @@ void LayoutState::UsedValues::set_temporary_content_height(CSSPixels height)
m_content_height = height;
}
CSSPixels LayoutState::resolved_definite_width(Box const& box) const
{
return get(box).content_width();
}
CSSPixels LayoutState::resolved_definite_height(Box const& box) const
{
return get(box).content_height();
}
AvailableSize LayoutState::UsedValues::available_width_inside() const
{
if (width_constraint == SizeConstraint::MinContent)