mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Remove "temporary content size" hack from flex layout
This was an old hack intended to make percentage sizes on flex items before we had implemented the appropriate special behavior of definite sizes in flex layout. Removing it makes flex layout less magical and should not change behavior in any observable way.
This commit is contained in:
parent
4cbd975b66
commit
bf15c7fa4b
Notes:
github-actions[bot]
2025-02-11 13:24:06 +00:00
Author: https://github.com/awesomekling
Commit: bf15c7fa4b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3538
3 changed files with 0 additions and 26 deletions
|
@ -648,16 +648,6 @@ void LayoutState::UsedValues::set_content_height(CSSPixels height)
|
|||
m_content_height = clamp_to_max_dimension_value(height);
|
||||
}
|
||||
|
||||
void LayoutState::UsedValues::set_temporary_content_width(CSSPixels width)
|
||||
{
|
||||
m_content_width = clamp_to_max_dimension_value(width);
|
||||
}
|
||||
|
||||
void LayoutState::UsedValues::set_temporary_content_height(CSSPixels height)
|
||||
{
|
||||
m_content_height = height;
|
||||
}
|
||||
|
||||
AvailableSize LayoutState::UsedValues::available_width_inside() const
|
||||
{
|
||||
if (width_constraint == SizeConstraint::MinContent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue