DescriptionFully (?) fix overflow: auto with delayed scroll updates
The scroll delaying code, used by Flexbox, never lays out the
parent after the child relayout. This is a problem especially
because the layout can add/remove a horizontal scrollbar,
which changes the height of the element. A vertical scrollbar
has this problem less often, though it sometimes does, especially
in case of flex items. As far as I can tell, this never worked
correctly since the scroll delaying code existed.
This patch changes it so that when we eventually do the scroll info
updates, we mark the ancestor chain for layout (up to the outer flexbox)
and then call layoutFlexItems again, to do the correct layout.
See also the discussion thread at
https://groups.google.com/a/chromium.org/d/topic/layout-dev/e7Wzvxu7qiA/discussion
BUG=579401, 584363
Committed: https://crrev.com/775378f6ac8293e20a393c5203f5431a4a679339
Cr-Commit-Position: refs/heads/master@{#377826}
Patch Set 1 #
Total comments: 2
Patch Set 2 : review comments #
Total comments: 2
Patch Set 3 : review comment #
Total comments: 3
Patch Set 4 : more review comment #
Total comments: 1
Patch Set 5 : added comment #Messages
Total messages: 37 (18 generated)
|