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

Issue 2522503002: [css-grid] Convert GridRepresentation into an actual class (Closed)

Created:
4 years, 1 month ago by svillar
Modified:
4 years, 1 month 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] Convert GridRepresentation into an actual class So far grids are represented as Vectors of Vectors. There are a couple of issues associated to that decision. First or all, the source code in LayoutGrid assumes the existence of that data structure, meaning that we cannot eventually change it without changing a lot of code. Apart from the coupling there is another issue, LayoutGrid is full of methods to access and manipulate that data structure. Instead, it'd be much better to have a Grid class encapsulating both the data structures and the methods required to access/manipulate it. Note that follow-up patches will move more data and procedures into this new class from the LayoutGrid code. BUG=627812 Committed: https://crrev.com/2c3a3d0ac5362c2d07040a821bb3a22f701d58b6 Cr-Commit-Position: refs/heads/master@{#433922}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Pach for landing. Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -52 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 3 chunks +27 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 12 chunks +49 lines, -46 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (7 generated)
svillar
4 years, 1 month ago (2016-11-21 15:16:16 UTC) #2
eae
Nice cleanup! LGTM
4 years, 1 month ago (2016-11-21 16:20:27 UTC) #3
Manuel Rego
Nice patch, LGTM! https://codereview.chromium.org/2522503002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.h File third_party/WebKit/Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/2522503002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.h#newcode348 third_party/WebKit/Source/core/layout/LayoutGrid.h:348: typedef Vector<Vector<GridCell>> GridAsVector; Or GridAsMatrix? https://codereview.chromium.org/2522503002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.h#newcode365 ...
4 years, 1 month ago (2016-11-22 10:07:18 UTC) #4
svillar
Thanks for the reviews! https://codereview.chromium.org/2522503002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.h File third_party/WebKit/Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/2522503002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.h#newcode348 third_party/WebKit/Source/core/layout/LayoutGrid.h:348: typedef Vector<Vector<GridCell>> GridAsVector; On 2016/11/22 ...
4 years, 1 month ago (2016-11-22 10:15:18 UTC) #5
commit-bot: I haz the power
This CL has an open dependency (Issue 2521553002 Patch 1). Please resolve the dependency and ...
4 years, 1 month ago (2016-11-22 10:19:25 UTC) #8
Manuel Rego
https://codereview.chromium.org/2522503002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.h File third_party/WebKit/Source/core/layout/LayoutGrid.h (right): https://codereview.chromium.org/2522503002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.h#newcode348 third_party/WebKit/Source/core/layout/LayoutGrid.h:348: typedef Vector<Vector<GridCell>> GridAsVector; On 2016/11/22 10:15:18, svillar wrote: > ...
4 years, 1 month ago (2016-11-22 10:38:01 UTC) #9
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/2522503002/20001
4 years, 1 month ago (2016-11-22 16:50:41 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-22 18:36:41 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 18:41:18 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2c3a3d0ac5362c2d07040a821bb3a22f701d58b6
Cr-Commit-Position: refs/heads/master@{#433922}

Powered by Google App Engine
This is Rietveld 408576698