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

Issue 2104123002: [css-flexbox] childIntrinsicWidth needs to actually return the intrinsic width (Closed)

Created:
4 years, 5 months ago by cbiesinger
Modified:
4 years, 5 months ago
Reviewers:
dgrogan, eae, cbiesinger1
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-flexbox] childIntrinsicWidth needs to actually return the intrinsic width This function is used to determine the cross size of a flex line. If we just use .width() then it is potentially affected by a previous layout where we already stretched the child. To avoid that, switch to maxPreferredLogicalWidth() -- we already use that in childIntrinsicHeight, and we also use intrinsicContentLogicalHeight() for the height case. However, if we have a non-auto width, we can't necessarily just call maxPreferredLogicalWidth; the preferred width may not have percentages correctly resolved, for example. TEST=css3/flexbox/wrapping-column-dynamic-changes.html BUG=607856, 607262 Committed: https://crrev.com/c83fe889c7045ad03b0b0a2e8d4fdcf1330d29ce Cr-Commit-Position: refs/heads/master@{#402932}

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : had to make this more similar to childIntrinsicHeight to fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/css3/flexbox/wrapping-column-dynamic-changes.html View 1 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 26 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2104123002/1
4 years, 5 months ago (2016-06-28 20:55:01 UTC) #2
cbiesinger
4 years, 5 months ago (2016-06-28 21:14:19 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2104123002/20001
4 years, 5 months ago (2016-06-28 21:15:18 UTC) #7
eae
LGTM
4 years, 5 months ago (2016-06-28 21:18:54 UTC) #8
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/2104123002/20001
4 years, 5 months ago (2016-06-28 21:23:30 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/251833)
4 years, 5 months ago (2016-06-28 23:06:39 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/2104123002/40001
4 years, 5 months ago (2016-06-29 18:12:26 UTC) #18
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/247767)
4 years, 5 months ago (2016-06-29 19:09:19 UTC) #20
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/2104123002/40001
4 years, 5 months ago (2016-06-29 19:22:14 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-29 21:07:08 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 21:10:21 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c83fe889c7045ad03b0b0a2e8d4fdcf1330d29ce
Cr-Commit-Position: refs/heads/master@{#402932}

Powered by Google App Engine
This is Rietveld 408576698