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

Issue 1870623002: [css-grid] Fix positioned items with content alignment (Closed)

Created:
4 years, 8 months ago by Manuel Rego
Modified:
4 years, 8 months 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Fix positioned items with content alignment Like for the case of gaps we need to take into account the content alignment in order to properly place and size the positioned items. Regarding content alignment we need to care about 2 values: the position offset and the distribution offset. The position offset can be extracted from m_column|rowPositions, but the distribution offset is stored in 2 new variables called m_offsetBetweenColumns|Rows. Added new tests checking the right behavior. BUG=566265 TEST=fast/css-grid-layout/grid-positioned-items-content-alignment.html TEST=fast/css-grid-layout/grid-positioned-items-content-alignment-rtl.html Committed: https://crrev.com/506951c7c67fda272ac85ed9f195c79f1c691ae9 Cr-Commit-Position: refs/heads/master@{#386952}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+821 lines, -12 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-content-alignment.html View 1 chunk +399 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-content-alignment-rtl.html View 1 chunk +399 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 7 chunks +21 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Manuel Rego
4 years, 8 months ago (2016-04-07 07:30:17 UTC) #2
cbiesinger
lgtm https://codereview.chromium.org/1870623002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1870623002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1548 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1548: LayoutUnit alignmentOffset = isForColumns ? m_columnPositions[0] - borderAndPaddingStart() ...
4 years, 8 months ago (2016-04-12 20:46:39 UTC) #3
Manuel Rego
Thanks for the review. https://codereview.chromium.org/1870623002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1870623002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1548 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1548: LayoutUnit alignmentOffset = isForColumns ? ...
4 years, 8 months ago (2016-04-13 08:13:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1870623002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1870623002/20001
4 years, 8 months ago (2016-04-13 08:13:48 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-13 09:46:53 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 09:48:15 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/506951c7c67fda272ac85ed9f195c79f1c691ae9
Cr-Commit-Position: refs/heads/master@{#386952}

Powered by Google App Engine
This is Rietveld 408576698