mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Fix intrinsic sizing early return condition in TFC
Early return before running full TFC algorithm is only possible when just table width need to be calculated.
This commit is contained in:
parent
97b3f1230b
commit
1ee99017e2
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 1ee99017e2
Pull-request: https://github.com/SerenityOS/serenity/pull/18064
Issue: https://github.com/SerenityOS/serenity/issues/17944
Reviewed-by: https://github.com/awesomekling
3 changed files with 28 additions and 1 deletions
|
@ -521,7 +521,7 @@ void TableFormattingContext::run(Box const& box, LayoutMode layout_mode, Availab
|
|||
// Compute the minimum width of each column.
|
||||
compute_table_measures();
|
||||
|
||||
if (available_space.width.is_intrinsic_sizing_constraint()) {
|
||||
if (available_space.width.is_intrinsic_sizing_constraint() && !available_space.height.is_intrinsic_sizing_constraint()) {
|
||||
determine_intrisic_size_of_table_container(available_space);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue