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

Issue 2525363002: [css-grid] Move more LayoutGrid attributes to Grid class (Closed)

Created:
4 years ago by svillar
Modified:
4 years ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, svillar, 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] Move more LayoutGrid attributes to Grid class Moved the remaining attributes of LayoutGrid to Grid class. In particular m_autoRepeat{Columns|Rows}, m_autoRepeatEmpty{Columns|Rows} and m_orderIterator. All of them are now private attributes of the Grid class so clients should use the getters/setters provided by this CL. This change allows to definitely remove the grid{Column|Row}Count() methods from LayoutGrid. These two became Grid::numTracks() which returns the number of tracks in the data structure used to represent the grid (currently a matrix). Contrary to that, LayoutGrid::numTracks() returns the actual size of the grid. BUG=627812 Committed: https://crrev.com/bf7e60b4260824122d9522220919766cd58458c7 Cr-Commit-Position: refs/heads/master@{#434510}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -135 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 8 chunks +27 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 39 chunks +142 lines, -117 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
svillar
4 years ago (2016-11-24 14:42:51 UTC) #2
jfernandez
Very nice refactoring and my comments are just suggestions for improvements, not a blocker at ...
4 years ago (2016-11-24 17:28:14 UTC) #3
svillar
Thanks for the review!!! https://codereview.chromium.org/2525363002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2525363002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode963 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:963: const GridSpan span = m_grid.gridItemSpan(*gridItem, ...
4 years ago (2016-11-25 12:31:42 UTC) #4
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/2525363002/20001
4 years ago (2016-11-25 14:17:35 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-25 15:42:01 UTC) #9
commit-bot: I haz the power
4 years ago (2016-11-25 15:44:07 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bf7e60b4260824122d9522220919766cd58458c7
Cr-Commit-Position: refs/heads/master@{#434510}

Powered by Google App Engine
This is Rietveld 408576698