DescriptionFix broken preferred widths optimization involving subtree layout roots
Back in an old, poorly explained commit, we added logic in
LayoutBox::computePreferredLogicalWidths to bail when in a subtree layout.
This may have been to cover up a bug whereby we'd get the value wrong in
this case, or it may have been an optimization:
https://chromium.googlesource.com/chromium/blink/+/0d46936cccddf2caa4d484e27fbccfe2520ca214%5E%21/#F8
This code can result in a box not updating its preferred widths even when it
should in the case that its a subtree layout root that was marked for layout
of its children, then subsequently marked for layout itself.
We shouldn't be calling computePreferredLogicalWidths if we don't need to,
instead of having this crazy short-circuit logic inside it.
BUG=497178
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197060
Patch Set 1 #
Total comments: 3
Patch Set 2 : Remove the code! #
Messages
Total messages: 17 (4 generated)
|