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

Issue 2261733002: [css-grid] Only force full invalidation when grid item data change (Closed)

Created:
4 years, 4 months ago by jfernandez
Modified:
4 years, 4 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-style_chromium.org, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Only force full invalidation when grid item data change We're currently comparing the rareData's m_gridItem pointer to decide whether a style change should force a full paint invalidation or not. This is causing that changes in CSS Alignment properties on a grid item are identified as needing a full paint invalidation, since the mentioned pointer has been changed, indeed. However, that change is not caused by the style change, but due to reapplying the same CSS rules. Even more, the tests ensuring the are no invalidations when there is not a visual geometry change are failing because of that. This change modifies the condition to inspect the grid item's style data, in addition to the pointer itself, so we only trigger the full invalidation if there is an actual change in the data. BUG=620235 Committed: https://crrev.com/be05bcdf2b257500dc1b24209583b323cc2b7461 Cr-Commit-Position: refs/heads/master@{#413700}

Patch Set 1 #

Patch Set 2 : These tests should be working again in win7. #

Total comments: 4

Patch Set 3 : Fixed bug in the ComputeStyle logic. #

Patch Set 4 : Removed defensive nullckeck bits. #

Patch Set 5 : Rebaseline some test expectations. #

Patch Set 6 : Avoiding flackiness on win7 platform. #

Patch Set 7 : Removed win7 platform specific test expectations. #

Patch Set 8 : Patch rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -212 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-content-distribution-change-grid-expected.txt View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-content-position-change-grid-expected.txt View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-items-overflow-change-expected.txt View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-self-change-grid.html View 3 chunks +13 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-self-change-grid-expected.html View 2 chunks +11 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-self-change-grid-expected.txt View 3 chunks +34 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid.html View 6 2 chunks +18 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid-expected.html View 6 1 chunk +15 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid-expected.txt View 1 chunk +1 line, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/align-self-overflow-change-expected.txt View 2 chunks +3 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-content-distribution-change-grid-expected.txt View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-content-position-change-grid-expected.txt View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-items-change-expected.txt View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-items-overflow-change-expected.txt View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-self-change.html View 3 chunks +20 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-self-change-expected.html View 2 chunks +17 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-self-change-expected.txt View 3 chunks +24 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-self-change-keeping-geometry.html View 6 2 chunks +17 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-self-change-keeping-geometry-expected.html View 6 2 chunks +16 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-self-change-keeping-geometry-expected.txt View 1 chunk +1 line, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/justify-self-overflow-change-expected.txt View 2 chunks +3 lines, -12 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win7/fast/repaint/align-self-change-keeping-geometry-grid-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win7/fast/repaint/justify-self-change-keeping-geometry-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 6 7 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
jfernandez
4 years, 4 months ago (2016-08-19 18:30:43 UTC) #3
cbiesinger
https://codereview.chromium.org/2261733002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2261733002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode569 third_party/WebKit/Source/core/style/ComputedStyle.cpp:569: const StyleGridItemData* gridItemDataB = m_rareNonInheritedData->m_gridItem.get(); This needs an "other"... ...
4 years, 4 months ago (2016-08-19 18:55:14 UTC) #4
cbiesinger
4 years, 4 months ago (2016-08-19 18:55:51 UTC) #5
jfernandez
https://codereview.chromium.org/2261733002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2261733002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode569 third_party/WebKit/Source/core/style/ComputedStyle.cpp:569: const StyleGridItemData* gridItemDataB = m_rareNonInheritedData->m_gridItem.get(); On 2016/08/19 18:55:13, cbiesinger ...
4 years, 4 months ago (2016-08-19 20:41:22 UTC) #7
jfernandez
4 years, 4 months ago (2016-08-19 20:42:28 UTC) #8
cbiesinger
Most of the code doesn't nullcheck -- timloh/bugsnash, can you advise whether this is needed? ...
4 years, 4 months ago (2016-08-19 20:43:30 UTC) #9
jfernandez
On 2016/08/19 20:43:30, cbiesinger wrote: > Most of the code doesn't nullcheck -- timloh/bugsnash, can ...
4 years, 4 months ago (2016-08-19 20:53:04 UTC) #10
cbiesinger
On 2016/08/19 20:53:04, jfernandez wrote: > On 2016/08/19 20:43:30, cbiesinger wrote: > > Most of ...
4 years, 4 months ago (2016-08-19 20:56:30 UTC) #11
jfernandez
On 2016/08/19 20:56:30, cbiesinger wrote: > On 2016/08/19 20:53:04, jfernandez wrote: > > On 2016/08/19 ...
4 years, 4 months ago (2016-08-19 20:59:05 UTC) #12
cbiesinger
lgtm
4 years, 4 months ago (2016-08-19 21:33:02 UTC) #13
jfernandez
@cbiesigner, could you help me to figure out what's going on with the tests failing ...
4 years, 4 months ago (2016-08-20 01:14:09 UTC) #14
Bugs Nash
On 2016/08/19 at 20:43:30, cbiesinger wrote: > Most of the code doesn't nullcheck -- timloh/bugsnash, ...
4 years, 4 months ago (2016-08-22 04:16:59 UTC) #15
cbiesinger
On 2016/08/20 01:14:09, jfernandez wrote: > @cbiesigner, could you help me to figure out what's ...
4 years, 4 months ago (2016-08-22 15:09:15 UTC) #16
jfernandez
On 2016/08/22 15:09:15, cbiesinger wrote: > On 2016/08/20 01:14:09, jfernandez wrote: > > @cbiesigner, could ...
4 years, 4 months ago (2016-08-22 15:23:04 UTC) #17
cbiesinger
But you could use runRepaintTest instead, then you don't need a reference. In general, the ...
4 years, 4 months ago (2016-08-22 15:28:02 UTC) #18
Xianzhu
On 2016/08/22 15:28:02, cbiesinger wrote: > But you could use runRepaintTest instead, then you don't ...
4 years, 4 months ago (2016-08-22 16:22:04 UTC) #19
jfernandez
On 2016/08/22 16:22:04, Xianzhu wrote: > On 2016/08/22 15:28:02, cbiesinger wrote: > > But you ...
4 years, 4 months ago (2016-08-22 16:23:55 UTC) #20
cbiesinger
On 2016/08/22 16:23:55, jfernandez wrote: > Any idea why this is failing only in the ...
4 years, 4 months ago (2016-08-22 16:27:38 UTC) #21
jfernandez
On 2016/08/22 16:27:38, cbiesinger wrote: > On 2016/08/22 16:23:55, jfernandez wrote: > > Any idea ...
4 years, 4 months ago (2016-08-22 20:44:31 UTC) #22
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/2261733002/160001
4 years, 4 months ago (2016-08-22 22:29:34 UTC) #25
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/278638)
4 years, 4 months ago (2016-08-23 02:05:52 UTC) #27
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/2261733002/160001
4 years, 4 months ago (2016-08-23 07:44:52 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 4 months ago (2016-08-23 09:24:23 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 09:26:19 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/be05bcdf2b257500dc1b24209583b323cc2b7461
Cr-Commit-Position: refs/heads/master@{#413700}

Powered by Google App Engine
This is Rietveld 408576698