DescriptionAvoid forcing layout on children with orthogonal flow
Flexbox always sets an override size on its children, and
keying off that, we force layout in preferredMainAxisContentExtentForChild
to get the preferred logical height. This patch caches that
value, and only re-lays out the child when necessary.
The original version of this patch was authored by abarth,
whose original patch uncovered a bug that was masked by
the additional layout. resetAutoMarginsAndLogicalTopInCrossAxis
previously reset the logical top but not auto margins.
This would cause us to double-count cross-axis margins
later on.
BUG=333116
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165162
Patch Set 1 #Patch Set 2 : Now with expected results! #
Total comments: 2
Patch Set 3 : Addressing Ojan's comments #
Total comments: 1
Patch Set 4 : Merged to ToT #Patch Set 5 : Updating again #Patch Set 6 : Patch for landing (added comment) #
Messages
Total messages: 7 (0 generated)
|