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

Issue 2334133002: [css-grid] Cache definite height detection (Closed)

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

Description

[css-grid] Cache definite height detection This is a refactoring patch which stores the definite/indefinite height detection in a new attribute m_hasDefiniteLogicalHeight in LayoutGrid. That way we just only call LayoutBlock::hasDefiniteLogicalHeight() once, from LayoutGrid::layoutBlock(). Then in LayoutGrid::gridTrackSize() we reuse the cached value. No new tests, no change of behavior. BUG=624301 Committed: https://crrev.com/e09a66db87cd70ecbd3b045464bf10ef623a03f9 Cr-Commit-Position: refs/heads/master@{#418831}

Patch Set 1 #

Total comments: 8

Patch Set 2 : New version using m_hasDefiniteLogicalHeight class member #

Total comments: 7

Patch Set 3 : New version applying suggested changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -6 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 5 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
jfernandez
I like the idea of caching the definite/indefinite logical height condition, but I think we ...
4 years, 3 months ago (2016-09-14 10:29:38 UTC) #2
svillar
So it seems that it's indeed very intrusive. Perhaps we should store it in an ...
4 years, 3 months ago (2016-09-14 14:25:14 UTC) #4
Manuel Rego
Uploaded a new version using a class attribute. https://codereview.chromium.org/2334133002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2334133002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode468 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:468: GridSizingData ...
4 years, 3 months ago (2016-09-15 06:35:28 UTC) #6
jfernandez
lgtm https://codereview.chromium.org/2334133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2334133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode456 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:456: m_hasDefiniteLogicalHeight = LayoutBlock::hasDefiniteLogicalHeight(); As commented before, we shouldn't ...
4 years, 3 months ago (2016-09-15 07:27:11 UTC) #8
jfernandez
lgtm
4 years, 3 months ago (2016-09-15 07:27:12 UTC) #9
svillar
lgtm with some changes https://codereview.chromium.org/2334133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2334133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode456 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:456: m_hasDefiniteLogicalHeight = LayoutBlock::hasDefiniteLogicalHeight(); On 2016/09/15 ...
4 years, 3 months ago (2016-09-15 08:02:22 UTC) #10
svillar
BTW shouldn't the title be "Cache definite height detection" instead of "Refactoring" (also "Refactoring of" ...
4 years, 3 months ago (2016-09-15 08:16:00 UTC) #11
Manuel Rego
Thanks for the reviews. On 2016/09/15 08:16:00, svillar wrote: > BTW shouldn't the title be ...
4 years, 3 months ago (2016-09-15 08:55:50 UTC) #13
Manuel Rego
https://codereview.chromium.org/2334133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.h File third_party/WebKit/Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/2334133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.h#newcode223 third_party/WebKit/Source/core/layout/LayoutGrid.h:223: bool hasDefiniteLogicalHeight() const On 2016/09/15 08:02:22, svillar wrote: > ...
4 years, 3 months ago (2016-09-15 08:56:04 UTC) #14
Manuel Rego
4 years, 3 months ago (2016-09-15 08:56:05 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/2334133002/40001
4 years, 3 months ago (2016-09-15 08:56:27 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/280297)
4 years, 3 months ago (2016-09-15 10:24:26 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/2334133002/40001
4 years, 3 months ago (2016-09-15 10:27:06 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-15 11:02:51 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 11:04:14 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e09a66db87cd70ecbd3b045464bf10ef623a03f9
Cr-Commit-Position: refs/heads/master@{#418831}

Powered by Google App Engine
This is Rietveld 408576698