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

Issue 2318993002: [css-grid] Fix performance regression in grid layout (Closed)

Created:
4 years, 3 months ago by svillar
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, blink-reviews-style_chromium.org, zoltan1, Manuel Rego, blink-reviews-css, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, svillar, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, blink-reviews, blink-reviews-layout_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Fix performance regression in grid layout Some of the changes added in crrev.com/415676 made layout of grid containers a bit slower. That was because it modified some methods in GridTrackSize.h which is a hot spot. That class is basically a cache of some values and it's critical to keep it really fast. The aforementioned CL was adding an if clause to a getter method, and that was causing the slowdown. BUG=643359 Committed: https://crrev.com/8b54987d15a92a54796a357daf6e021f0ff9a2b6 Cr-Commit-Position: refs/heads/master@{#417001}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -24 lines) Patch
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/style/GridTrackSize.h View 1 3 chunks +26 lines, -17 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
svillar
4 years, 3 months ago (2016-09-07 09:31:28 UTC) #3
jfernandez
lgtm
4 years, 3 months ago (2016-09-07 10:50:51 UTC) #4
Manuel Rego
lgtm https://codereview.chromium.org/2318993002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2318993002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1147 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1147: DCHECK(trackSize.fitContentTrackBreadth().isLength()); Probably this DCHECK() is not really useful ...
4 years, 3 months ago (2016-09-07 10:56:47 UTC) #5
cbiesinger
lgtm
4 years, 3 months ago (2016-09-07 16:00:36 UTC) #6
svillar
https://codereview.chromium.org/2318993002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2318993002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1147 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1147: DCHECK(trackSize.fitContentTrackBreadth().isLength()); On 2016/09/07 10:56:47, Manuel Rego wrote: > Probably ...
4 years, 3 months ago (2016-09-07 16:27:52 UTC) #7
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/2318993002/20001
4 years, 3 months ago (2016-09-07 16:29:22 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-07 18:25:58 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/8b54987d15a92a54796a357daf6e021f0ff9a2b6 Cr-Commit-Position: refs/heads/master@{#417001}
4 years, 3 months ago (2016-09-07 18:29:48 UTC) #14
Manuel Rego
https://codereview.chromium.org/2318993002/diff/1/third_party/WebKit/Source/core/style/GridTrackSize.h File third_party/WebKit/Source/core/style/GridTrackSize.h (right): https://codereview.chromium.org/2318993002/diff/1/third_party/WebKit/Source/core/style/GridTrackSize.h#newcode81 third_party/WebKit/Source/core/style/GridTrackSize.h:81: const GridLength& maxTrackBreadth() const { return m_maxTrackBreadth; } On ...
4 years, 3 months ago (2016-09-07 20:11:47 UTC) #15
eae
4 years, 3 months ago (2016-09-08 07:50:44 UTC) #16
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698