Chromium Code Reviews
Description[css-flexbox] Only cache m_hasDefiniteHeight if we're inside of layoutBlock()
Fixes a regression from https://codereview.chromium.org/2056043002
It is possible that we get into mainAxisLengthIsDefinite outside of layout,
especially via mainSizeForPercentageResolution. But in that case we do not want
to cache the value we compute because we have no way to invalidate it
correctly. So this patch introduces a m_inLayout variable to store this
correctly. (An alternative would be to set m_hasDefiniteHeight at the beginning
of layout and otherwise just read from it, but then we would need to always
compute it even if it turns out to be unneeded. Let me know if you prefer that
though.)
BUG=669714
R=eae@chromium.org
Committed: https://crrev.com/b313bcac825d7be7741d7923e9074a93a42f72d7
Cr-Commit-Position: refs/heads/master@{#438562}
Patch Set 1 #Patch Set 2 : revert back to manually re-setting m_hasDefiniteHeight and moving it before updateAfterLayout, beca… #Patch Set 3 : Switch back to computePercentageLogicalHeight from hasDefiniteLogicalHeight to fix test failures #
Messages
Total messages: 23 (14 generated)
|
|||||||||||||||||||||||||||||||||||||