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

Issue 2336663002: [css-grid] Too many gaps with trailing collapsing tracks (Closed)

Created:
4 years, 3 months ago by svillar
Modified:
4 years, 3 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] Too many gaps with trailing collapsing tracks The total size of gaps were incorrectly computed whenever there were trailing collapsed tracks (with collapsed gaps). The problem was that we were trying to optimize too much the amount of hash table queries required to know the gaps between two lines. We were considering that a gap always exist between 2 consecutive tracks if the first one is not empty. That's generally true (for both NOTEMPTY - NOTEMPTY and NOTEMPTY - EMPTY+ - NOTEMPTY sequences) but not for all the cases (NOTEMPTY - EMPTY+). BUG=645746 Committed: https://crrev.com/011d6fa1bdaa3f942a389ae3b55d20f681c63bbf Cr-Commit-Position: refs/heads/master@{#418209}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-columns.html View 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
svillar
4 years, 3 months ago (2016-09-12 16:40:11 UTC) #2
eae
https://codereview.chromium.org/2336663002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2336663002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode570 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:570: gapAccumulator -= gap; Do we want to add a ...
4 years, 3 months ago (2016-09-12 19:24:32 UTC) #3
Manuel Rego
lgtm Nice catch. https://codereview.chromium.org/2336663002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-columns.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-columns.html (right): https://codereview.chromium.org/2336663002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-columns.html#newcode157 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-columns.html:157: <div class="item" style="grid-column-start: 1" data-offset-x="0" data-offset-y="0" ...
4 years, 3 months ago (2016-09-12 19:50:17 UTC) #4
svillar
https://codereview.chromium.org/2336663002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2336663002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode570 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:570: gapAccumulator -= gap; On 2016/09/12 19:24:32, eae wrote: > ...
4 years, 3 months ago (2016-09-13 07:36:28 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/2336663002/20001
4 years, 3 months ago (2016-09-13 08:15:46 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-13 09:53:40 UTC) #9
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 09:55:47 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/011d6fa1bdaa3f942a389ae3b55d20f681c63bbf
Cr-Commit-Position: refs/heads/master@{#418209}

Powered by Google App Engine
This is Rietveld 408576698