Don't change the height of a layout object while not laying it out.
The old flexbox implementation did that. This still used to work halfheartedly by accident until the fix for bug 498770, though, because we used to mark out-of-flow positioned children in updateBlockChildDirtyBitsBeforeLayout(). But it never worked for anything other than direct children. Added one test for the recent regression (out-of-flow child) and one test that has probably never passed, until now (out-of-flow grandchild). We need to be inside layout() when setting the height of an object, or we won't be able to detect any changes and thus fail to relayout positioned descendants that may be affected. BUG=504239 R=leviw@chromium.org Review URL: https://codereview.chromium.org/1213843002 git-svn-id: svn://svn.chromium.org/blink/trunk@198017 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment