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

Issue 2287533002: [css-grid] Remove a duplicated auto repeat computation for intrinsic sizes (Closed)

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

Description

[css-grid] Remove a duplicated auto repeat computation for intrinsic sizes After crrev.com/414446 we can safely remove the temporary fix (crrev.com/405529) we had to avoid crashes and recursive calls when computing the auto repeat tracks count for grids with intrinsic sizes. This change unveiled a couple of bugs in the computation of auto repeat tracks for intrinsic sizes. The first one is that we were not considering the existence of definite minimum sizes. In those cases, instead of just returning 1 repetition, we should return the minimum number of repetitions that fulfill the minimum size requirement. The second bug was that grids were not properly recomputing the number of auto repeat tracks when the min|max-content contributions of grid items changed (whenever the grid container had an intrinsic width). One Mozilla test had to be updated too because it was wrong. BUG=621517, 633474 Committed: https://crrev.com/90ea1ed689536a8500f9d92652b2a4a0baa24db6 Cr-Commit-Position: refs/heads/master@{#425958}

Patch Set 1 #

Patch Set 2 : Patch #

Total comments: 9

Patch Set 3 : Use const_cast #

Patch Set 4 : Rebased patch #

Messages

Total messages: 33 (11 generated)
svillar
4 years, 3 months ago (2016-08-26 15:03:02 UTC) #2
cbiesinger
> master@{#414446} I would suggest entering those as crrev.com/414446 so they're easier to map to ...
4 years, 3 months ago (2016-08-26 20:59:14 UTC) #3
svillar
On 2016/08/26 20:59:14, cbiesinger wrote: > > master@{#414446} > > I would suggest entering those ...
4 years, 3 months ago (2016-08-29 08:42:40 UTC) #5
Manuel Rego
The patch LGTM but let's wait for @cbiesinger feedback. BTW, I think you need to ...
4 years, 3 months ago (2016-08-29 10:00:36 UTC) #6
cbiesinger
Thanks for the explanation, but I'm still unclear why it is safe to remove the ...
4 years, 3 months ago (2016-08-29 20:16:36 UTC) #8
svillar
On 2016/08/29 20:16:36, cbiesinger wrote: > Thanks for the explanation, but I'm still unclear why ...
4 years, 3 months ago (2016-08-30 07:50:26 UTC) #9
svillar
ping reviewers
4 years, 2 months ago (2016-10-03 17:00:45 UTC) #11
cbiesinger
Sorry for the delay, I hadn't realized that you updated a new version https://codereview.chromium.org/2287533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File ...
4 years, 2 months ago (2016-10-05 22:22:14 UTC) #12
svillar
Hope I have solved your doubts https://codereview.chromium.org/2287533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2287533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode602 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:602: const_cast<LayoutGrid*>(this)->placeItemsOnGrid(); On 2016/10/05 ...
4 years, 2 months ago (2016-10-06 08:17:19 UTC) #13
jfernandez
Now that @svillar clarified @cbiesinger questions, the patch LGTM.
4 years, 2 months ago (2016-10-06 08:27:58 UTC) #14
Manuel Rego
Sorry but I've doubts about this patch. https://codereview.chromium.org/2287533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.h File third_party/WebKit/Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/2287533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.h#newcode61 third_party/WebKit/Source/core/layout/LayoutGrid.h:61: void dirtyGrid() ...
4 years, 2 months ago (2016-10-06 12:31:30 UTC) #15
svillar
https://codereview.chromium.org/2287533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.h File third_party/WebKit/Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/2287533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.h#newcode61 third_party/WebKit/Source/core/layout/LayoutGrid.h:61: void dirtyGrid() const; On 2016/10/06 12:31:30, Manuel Rego wrote: ...
4 years, 2 months ago (2016-10-06 13:14:34 UTC) #16
Manuel Rego
Yep, most of the attributes on LayoutGrid could be considered cached ones. I don't have ...
4 years, 2 months ago (2016-10-07 10:56:18 UTC) #17
svillar
Just uploaded a new version with a const_cast which seems to be the preferred option ...
4 years, 2 months ago (2016-10-17 16:18:10 UTC) #18
Manuel Rego
I also don't love the const_cast but this change seems less intrusive to me. LGTM.
4 years, 2 months ago (2016-10-17 19:39:08 UTC) #19
cbiesinger
lgtm
4 years, 2 months ago (2016-10-17 21:35:56 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/2287533002/40001
4 years, 2 months ago (2016-10-18 07:42:10 UTC) #23
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/316650)
4 years, 2 months ago (2016-10-18 07:44:27 UTC) #25
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/2287533002/60001
4 years, 2 months ago (2016-10-18 12:34:36 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-18 14:44:44 UTC) #30
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/90ea1ed689536a8500f9d92652b2a4a0baa24db6 Cr-Commit-Position: refs/heads/master@{#425958}
4 years, 2 months ago (2016-10-18 14:48:22 UTC) #32
Manuel Rego
4 years, 1 month ago (2016-11-18 10:56:52 UTC) #33
Message was sent while issue was closed.
We're going to revert this on https://codereview.chromium.org/2510393002/
Due to https://bugs.chromium.org/p/chromium/issues/detail?id=662016

Powered by Google App Engine
This is Rietveld 408576698