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

Issue 2571893002: [css-flexbox] Only cache m_hasDefiniteHeight if we're inside of layoutBlock() (Closed)

Created:
4 years ago by cbiesinger
Modified:
4 years ago
Reviewers:
eae
CC:
chromium-reviews, cbiesinger, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/css3/flexbox/bug669714.html View 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 2 5 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
cbiesinger
4 years ago (2016-12-13 20:38:00 UTC) #1
eae
LGTM Thanks Christian!
4 years ago (2016-12-13 20:47:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2571893002/1
4 years ago (2016-12-13 20:50:32 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/288184)
4 years ago (2016-12-13 21:31:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2571893002/20001
4 years ago (2016-12-13 21:45:50 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/349257)
4 years ago (2016-12-13 23:33:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2571893002/40001
4 years ago (2016-12-14 16:56:02 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-14 18:57:26 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-14 19:00:00 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b313bcac825d7be7741d7923e9074a93a42f72d7
Cr-Commit-Position: refs/heads/master@{#438562}

Powered by Google App Engine
This is Rietveld 408576698