Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(238)

Issue 1079563002: [CSS Grid Layout] Replace the usage of pointers to functions (Closed)

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

Description

[CSS Grid Layout] Replace the usage of pointers to functions The argument list of resolveContentBasedTrackSizingFunctionsForItems() became too long and rather incomprehensible as it included up to 5 function pointers. This replaces all of them by an enum which describes the phase of the algorithm that is currently running. With that phase we have enough information to select the right function to call. In order not to tangle up too much the method, the new explicit switch statements where moved to private static helper functions. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196960

Patch Set 1 #

Total comments: 9

Patch Set 2 : Moved helpers to blink namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -19 lines) Patch
M Source/core/layout/LayoutGrid.h View 1 2 chunks +11 lines, -5 lines 0 comments Download
M Source/core/layout/LayoutGrid.cpp View 1 8 chunks +115 lines, -14 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
svillar
5 years ago (2015-04-10 15:46:47 UTC) #2
eae
I'd like cbiesinger to review this.
5 years ago (2015-04-27 20:00:11 UTC) #3
svillar
5 years ago (2015-04-30 07:41:39 UTC) #5
cbiesinger
https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h File Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h#newcode113 Source/core/layout/LayoutGrid.h:113: static const LayoutUnit& trackSizeForTrackSizeComputationPhase(TrackSizeComputationPhase, GridTrack&, TrackSizeRestriction); So the patch ...
5 years ago (2015-04-30 23:33:02 UTC) #6
svillar
On 2015/04/30 23:33:02, cbiesinger wrote: > https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h > File Source/core/layout/LayoutGrid.h (right): > > https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h#newcode113 > ...
5 years ago (2015-05-01 10:40:50 UTC) #7
cbiesinger
lgtm. FYI I'm not an owner, so if you're not an owner yourself someone else ...
5 years ago (2015-05-01 16:34:45 UTC) #8
svillar
On 2015/05/01 16:34:45, cbiesinger wrote: > lgtm. FYI I'm not an owner, so if you're ...
5 years ago (2015-05-01 16:55:48 UTC) #9
svillar
On 2015/05/01 16:55:48, svillar wrote: > On 2015/05/01 16:34:45, cbiesinger wrote: > > lgtm. FYI ...
4 years, 11 months ago (2015-05-08 13:50:28 UTC) #10
dsinclair
https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h File Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h#newcode113 Source/core/layout/LayoutGrid.h:113: static const LayoutUnit& trackSizeForTrackSizeComputationPhase(TrackSizeComputationPhase, GridTrack&, TrackSizeRestriction); Can GridTrack be ...
4 years, 11 months ago (2015-05-08 15:50:28 UTC) #11
svillar
Thanks for the review. https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h File Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/1079563002/diff/1/Source/core/layout/LayoutGrid.h#newcode113 Source/core/layout/LayoutGrid.h:113: static const LayoutUnit& trackSizeForTrackSizeComputationPhase(TrackSizeComputationPhase, GridTrack&, ...
4 years, 11 months ago (2015-05-11 07:11:45 UTC) #12
svillar
@jchaffraix is it OK for you?
4 years, 11 months ago (2015-05-27 14:46:00 UTC) #13
svillar
On 2015/05/27 14:46:00, svillar wrote: > @jchaffraix is it OK for you? Ping Julien...
4 years, 11 months ago (2015-06-01 19:01:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1079563002/20001
4 years, 10 months ago (2015-06-11 14:56:48 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2015-06-11 17:01:24 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196960

Powered by Google App Engine
This is Rietveld 408576698