Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Issue 802813003: Skip PositionedMovementLayout when descendants depend on element's height (Closed)

Created:
5 years, 11 months ago by rhogan
Modified:
5 years, 11 months ago
CC:
blink-reviews, blink-reviews-rendering, Dominik Röttsches, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Skip PositionedMovementLayout when descendants depend on element's height If we decide based on a style mutation that we only need to do positioned movement layout we change our mind if it turns out that we have normal flow descendants in need of a layout too. One way of noticing this is if our width has changed. Another way is when our height has changed and we have descendants that depend on it. I believe the latter are percent height descendants only. Note that positioned descendants always will always get a layout in positioned movement layout (due to ForcedLayoutAfterContainingBlockMoved)- so we don't need to worry about them here. BUG=445871 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187964

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 9

Patch Set 3 : Updated #

Messages

Total messages: 8 (2 generated)
rhogan
5 years, 11 months ago (2015-01-05 21:54:35 UTC) #2
Julien - ping for review
lgtm https://codereview.chromium.org/802813003/diff/20001/LayoutTests/fast/block/positioning/positioned-movement-layout-when-height-changes-and-descendant-dependent-on-height-expected.html File LayoutTests/fast/block/positioning/positioned-movement-layout-when-height-changes-and-descendant-dependent-on-height-expected.html (right): https://codereview.chromium.org/802813003/diff/20001/LayoutTests/fast/block/positioning/positioned-movement-layout-when-height-changes-and-descendant-dependent-on-height-expected.html#newcode10 LayoutTests/fast/block/positioning/positioned-movement-layout-when-height-changes-and-descendant-dependent-on-height-expected.html:10: overflow: hidden; This doesn't seem needed for the ...
5 years, 11 months ago (2015-01-06 14:35:10 UTC) #3
rhogan
https://codereview.chromium.org/802813003/diff/20001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/802813003/diff/20001/Source/core/rendering/RenderBlock.cpp#newcode3883 Source/core/rendering/RenderBlock.cpp:3883: bool RenderBlock::tryLayoutDoingPositionedMovementOnly() On 2015/01/06 at 14:35:09, Julien Chaffraix - ...
5 years, 11 months ago (2015-01-06 21:43:46 UTC) #4
Julien - ping for review
https://codereview.chromium.org/802813003/diff/20001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/802813003/diff/20001/Source/core/rendering/RenderBlock.cpp#newcode3883 Source/core/rendering/RenderBlock.cpp:3883: bool RenderBlock::tryLayoutDoingPositionedMovementOnly() On 2015/01/06 21:43:45, rhogan wrote: > On ...
5 years, 11 months ago (2015-01-07 09:41:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/802813003/40001
5 years, 11 months ago (2015-01-07 13:11:27 UTC) #7
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 13:14:48 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187964

Powered by Google App Engine
This is Rietveld 408576698