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

Issue 1909153002: [css-grid] Fix bug with positioned items in vertical writing mode (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 bug with positioned items in vertical writing mode In LayoutGrid::offsetAndBreadthForPositionedChild() we were using directly borderLeft(), which is wrong in vertical writing modes. To fix it we just need to use borderLogicalLeft() which is aware of the current writing mode. Modified current test to add borders and cases for positioned items with offsets. BUG=273898 TEST=fast/css-grid-layout/grid-positioned-children-writing-modes.html Committed: https://crrev.com/e070cb32423f6603b23a62e3b879f363f79bff69 Cr-Commit-Position: refs/heads/master@{#389068}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Patch for landing #

Patch Set 3 : Increase size of grids in the tests to avoid weird visual results #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -26 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html View 1 2 2 chunks +49 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes-expected.html View 1 2 1 chunk +45 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
Manuel Rego
4 years, 8 months ago (2016-04-21 20:56:14 UTC) #2
svillar
lgtm https://codereview.chromium.org/1909153002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html (right): https://codereview.chromium.org/1909153002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html#newcode75 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html:75: <div class="sizedToGridArea red"></div> Do you need all the ...
4 years, 8 months ago (2016-04-22 08:17:21 UTC) #3
Manuel Rego
Thanks for the review. https://codereview.chromium.org/1909153002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html (right): https://codereview.chromium.org/1909153002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html#newcode75 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html:75: <div class="sizedToGridArea red"></div> On 2016/04/22 ...
4 years, 8 months ago (2016-04-22 08:43:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909153002/20001
4 years, 8 months ago (2016-04-22 08:44:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909153002/40001
4 years, 8 months ago (2016-04-22 09:50:23 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-22 10:54:01 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e070cb32423f6603b23a62e3b879f363f79bff69 Cr-Commit-Position: refs/heads/master@{#389068}
4 years, 8 months ago (2016-04-22 19:45:56 UTC) #14
cbiesinger
4 years, 8 months ago (2016-04-22 20:03:16 UTC) #15
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698