mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Remove unnecessary re-measurement of cross sizes in flex layout
This was an old hack from before we understood how and when to resolve percentages in flex layout. Removing it should not change anything, but it does avoid a lot of redundant layout work on many pages.
This commit is contained in:
parent
e677ab1699
commit
0084d992d4
Notes:
github-actions[bot]
2025-02-10 00:27:38 +00:00
Author: https://github.com/awesomekling
Commit: 0084d992d4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3522
1 changed files with 0 additions and 12 deletions
|
@ -150,18 +150,6 @@ void FlexFormattingContext::run(AvailableSpace const& available_space)
|
|||
}
|
||||
}
|
||||
|
||||
{
|
||||
// NOTE: We re-resolve cross sizes here, now that we can resolve percentages.
|
||||
|
||||
// 7. Determine the hypothetical cross size of each item
|
||||
for (auto& item : m_flex_items) {
|
||||
determine_hypothetical_cross_size_of_item(item, true);
|
||||
}
|
||||
|
||||
// 11. Determine the used cross size of each flex item.
|
||||
determine_used_cross_size_of_each_flex_item();
|
||||
}
|
||||
|
||||
// 16. Align all flex lines (per align-content)
|
||||
align_all_flex_lines();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue