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

Issue 2589143002: [css-grid] Isolate intrinsic size computation from layout (Closed)

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

Description

[css-grid] Isolate intrinsic size computation from layout This is the last patch of the items placement data refactoring. By using a different Grid instance in computeIntrinsicLogicalWidths we effectively isolate the intrinsic size computation from the layout. They are now using different data structures so they don't interfere each other. This also means that we no longer reuse the placement of items done in the intrinsic size computation. That shouldn't be a big issue because we do save the position of items between layouts. Last but not least, this patch finally removes the ugly const_cast's we had in computeIntrinsicLogicalWidths() as we no longer modify the internal state of LayoutGrid. BUG=627812, 666688 Committed: https://crrev.com/b34fbbccb46eae5f12faec3ea00ed3c3bfb2692b Cr-Commit-Position: refs/heads/master@{#440755}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -35 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-change-intrinsic-size-with-auto-repeat-tracks.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 4 chunks +17 lines, -27 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
svillar
Sending out
4 years ago (2016-12-20 08:54:33 UTC) #2
jfernandez
LGTM https://codereview.chromium.org/2589143002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2589143002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode804 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:804: placeItemsOnGrid(grid, IntrinsicSizeComputation); What do you think about creating ...
4 years ago (2016-12-20 15:57:55 UTC) #4
svillar
Thanks for the quick review. https://codereview.chromium.org/2589143002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2589143002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode804 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:804: placeItemsOnGrid(grid, IntrinsicSizeComputation); On 2016/12/20 ...
4 years ago (2016-12-20 16:21:44 UTC) #5
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/2589143002/1
4 years ago (2016-12-20 16:45:01 UTC) #7
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/LayoutTests/TestExpectations: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-20 18:29:45 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/2589143002/20001
3 years, 12 months ago (2016-12-27 13:57:36 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 12 months ago (2016-12-27 15:13:31 UTC) #15
huangs
New failures in builders: - Linux Tests (dbg)(1) - Android Tests - WebKit Android (Nexus4) ...
3 years, 12 months ago (2016-12-27 16:55:29 UTC) #16
huangs
The errors cleared up by themselves. No need to revert.
3 years, 12 months ago (2016-12-27 19:31:38 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:46:14 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b34fbbccb46eae5f12faec3ea00ed3c3bfb2692b
Cr-Commit-Position: refs/heads/master@{#440755}

Powered by Google App Engine
This is Rietveld 408576698