DescriptionRefactor layoutBlock() and layoutBlockFlow(). Happens to fix bugs.
Move what only needs to be done once into layoutBlock(). Rename
layoutBlockFlow() to layoutChildren(). Establish LayoutState once, and compare
with the actual previous height to properly detect height changes.
This fixes two issues with the PaintLayerScrollableArea::FreezeScrollbarsScope
mechanism. Tests added.
1. We used to push LayoutState for the same object twice when freezing
scrollbars, which confused the fragmentation machinery.
2. We failed to detect height changes when freezing scrollbars, because we were
unable to compare against the original height (we compared against the height
we had when entering the second layout pass, rather than comparing against the
one we had when entering the first layout pass). We might therefore end up
skipping necessary re-layout of absolutely positioned descendants.
BUG=669039, 670660
Committed: https://crrev.com/9d96126f67850daf3c07586dc09fa334d592529c
Cr-Commit-Position: refs/heads/master@{#436414}
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|