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

Issue 2399963002: [layoutng] margin: auto support (Closed)

Created:
4 years, 2 months ago by cbiesinger
Modified:
4 years, 2 months ago
Reviewers:
Gleb Lanbin, eae
CC:
chromium-reviews, cbiesinger, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, glebl+reviews_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[layoutng] margin: auto support Add an ApplyAutoMargin function in ng_length_utils and use that from ng_block_layout_algorithm. I did not add it to computeMargins because not all callers should take margin: auto into account. In particular, a child's width: auto computation needs to treat margin: auto as zero (and, at any rate, does not have a fragment available yet). R=glebl@chromium.org,eae@chromium.org BUG=635619 Committed: https://crrev.com/db9e18276e2915c4f59bb8f8f924e5a6cee3e0b7 Cr-Commit-Position: refs/heads/master@{#423680}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comment #

Patch Set 3 : one more test now passes! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -1 line) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.h View 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc View 2 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
cbiesinger
4 years, 2 months ago (2016-10-06 19:08:57 UTC) #1
eae
https://codereview.chromium.org/2399963002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc File third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc (right): https://codereview.chromium.org/2399963002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc#newcode297 third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc:297: margins.inline_start = margins.inline_end = available_space / 2; This will ...
4 years, 2 months ago (2016-10-06 19:11:22 UTC) #4
cbiesinger
https://codereview.chromium.org/2399963002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc File third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc (right): https://codereview.chromium.org/2399963002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc#newcode297 third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc:297: margins.inline_start = margins.inline_end = available_space / 2; On 2016/10/06 ...
4 years, 2 months ago (2016-10-06 19:28:27 UTC) #5
eae
On 2016/10/06 19:28:27, cbiesinger wrote: > https://codereview.chromium.org/2399963002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc > File third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc (right): > > https://codereview.chromium.org/2399963002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc#newcode297 > ...
4 years, 2 months ago (2016-10-06 19:30:30 UTC) #8
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/2399963002/20001
4 years, 2 months ago (2016-10-06 19:35:49 UTC) #11
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/2399963002/40001
4 years, 2 months ago (2016-10-06 19:55:12 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 21:15:39 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 21:17:12 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/db9e18276e2915c4f59bb8f8f924e5a6cee3e0b7
Cr-Commit-Position: refs/heads/master@{#423680}

Powered by Google App Engine
This is Rietveld 408576698