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

Issue 2263213002: [css-grid] Do not recursively call layout during auto repeat computation (Closed)

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

Description

[css-grid] Do not recursively call layout during auto repeat computation The computation of auto repeat tracks was incorrectly recursively triggering a layout in order to compute the available size. That was happening whenever the width was indefinite. In such cases we should treat the width always as indefinite without having to run any extra code. During the layout phase we'll have the actual width available. This partially reverts commit 49bc5ba13c492f09971882e2cb842e3514d19922 which was a quick fix for a security issue but that was not actually fixing the real problem behind. BUG=633474 Committed: https://crrev.com/fd60fc3c2c5ebc47c9fe7e1bbb7fe1bb6dc19ae1 Cr-Commit-Position: refs/heads/master@{#414446}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -22 lines) Patch
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 1 5 chunks +23 lines, -20 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
svillar
Adding reviewers who checked the original patch
4 years, 4 months ago (2016-08-22 14:20:14 UTC) #2
jfernandez
https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (left): https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#oldcode1401 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1401: ? computeLogicalWidthUsing(MaxSize, maxLength, containingBlockLogicalWidthForContent(), containingBlock()) Where is this case ...
4 years, 4 months ago (2016-08-22 14:44:48 UTC) #4
svillar
Thanks for the quick review! https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (left): https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#oldcode1401 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1401: ? computeLogicalWidthUsing(MaxSize, maxLength, containingBlockLogicalWidthForContent(), ...
4 years, 4 months ago (2016-08-22 16:01:52 UTC) #5
jfernandez
https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (left): https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#oldcode1401 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1401: ? computeLogicalWidthUsing(MaxSize, maxLength, containingBlockLogicalWidthForContent(), containingBlock()) On 2016/08/22 16:01:52, svillar ...
4 years, 4 months ago (2016-08-22 16:20:20 UTC) #6
cbiesinger
lgtm as long as Javier is happy :)
4 years, 4 months ago (2016-08-22 16:25:49 UTC) #7
jfernandez
lgtm
4 years, 4 months ago (2016-08-22 17:02:14 UTC) #8
Manuel Rego
https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1395 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1395: LayoutUnit availableSize(-1); Mmm, this means that for columns during ...
4 years, 4 months ago (2016-08-23 07:43:03 UTC) #9
svillar
https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1395 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1395: LayoutUnit availableSize(-1); On 2016/08/23 07:43:03, Manuel Rego wrote: > ...
4 years, 4 months ago (2016-08-25 09:33:10 UTC) #10
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/2263213002/20001
4 years, 3 months ago (2016-08-25 09:41:58 UTC) #13
Manuel Rego
LGTM. https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2263213002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1395 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1395: LayoutUnit availableSize(-1); On 2016/08/25 09:33:10, svillar wrote: > ...
4 years, 3 months ago (2016-08-25 09:59:35 UTC) #14
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/280953)
4 years, 3 months ago (2016-08-25 13:20:45 UTC) #16
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/2263213002/20001
4 years, 3 months ago (2016-08-25 14:28:42 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-25 15:51:59 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 15:53:53 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fd60fc3c2c5ebc47c9fe7e1bbb7fe1bb6dc19ae1
Cr-Commit-Position: refs/heads/master@{#414446}

Powered by Google App Engine
This is Rietveld 408576698