forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fully (?) 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 Review URL: https://codereview.chromium.org/1734203002 Cr-Commit-Position: refs/heads/master@{#377826}
- Loading branch information
1 parent
c249547
commit 775378f
Showing
8 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters