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

Issue 2353513003: [css-grid] Use grid area position to determine overflowing items (Closed)

Created:
4 years, 3 months ago by svillar
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, 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] Use grid area position to determine overflowing items Grid code keeps a list of items overflowing their grid areas so that it could apply some painting optimizations to reduce the amount of grid items to be painted. Even if the border box is completely contained by the item's grid area, margins in the item could make it overflow its grid area by altering the border box position. The problem is not that the optimization won't work, it's worse because it will make that item not visible as it won't be painted. BUG=628155 Committed: https://crrev.com/a67debf9a9b78f60e7b10b5574ae4ceab49af31b Cr-Commit-Position: refs/heads/master@{#420094}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/painting-item-marginbox-overflowing-grid-area.html View 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/painting-item-marginbox-overflowing-grid-area-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 3 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
svillar
4 years, 3 months ago (2016-09-19 17:16:45 UTC) #3
cbiesinger
The change seems fine but I don't see where this uses the margin box? frame ...
4 years, 3 months ago (2016-09-19 17:25:12 UTC) #4
jfernandez
https://codereview.chromium.org/2353513003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2353513003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1934 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1934: // TODO (lajava): Child's margins should account when evaluating ...
4 years, 3 months ago (2016-09-19 18:01:24 UTC) #5
cbiesinger
frameRect is always the border box rect -- box sizing is already taken into account ...
4 years, 3 months ago (2016-09-19 18:07:04 UTC) #6
cbiesinger
frameRect is always the border box rect -- box sizing is already taken into account ...
4 years, 3 months ago (2016-09-19 18:07:05 UTC) #7
svillar
On 2016/09/19 17:25:12, cbiesinger wrote: > The change seems fine but I don't see where ...
4 years, 3 months ago (2016-09-20 11:10:18 UTC) #8
svillar
https://codereview.chromium.org/2353513003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2353513003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1934 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1934: // TODO (lajava): Child's margins should account when evaluating ...
4 years, 3 months ago (2016-09-20 11:12:47 UTC) #9
jfernandez
I understand now, thanks for the explanations. LGTM.
4 years, 3 months ago (2016-09-20 11:48:59 UTC) #10
cbiesinger
thanks, lgtm
4 years, 3 months ago (2016-09-20 12:58:16 UTC) #15
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/2353513003/20001
4 years, 3 months ago (2016-09-20 13:39:59 UTC) #17
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/296161)
4 years, 3 months ago (2016-09-20 15:19:06 UTC) #19
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/2353513003/20001
4 years, 3 months ago (2016-09-21 15:15:38 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-21 17:29:58 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 17:34:37 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a67debf9a9b78f60e7b10b5574ae4ceab49af31b
Cr-Commit-Position: refs/heads/master@{#420094}

Powered by Google App Engine
This is Rietveld 408576698