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 2336353002: Collapse bottom margins of a last child and its parent if parent's height=auto (Closed)

Created:
4 years, 3 months ago by Gleb Lanbin
Modified:
4 years, 3 months ago
Reviewers:
cbiesinger, ikilpatrick
CC:
chromium-reviews, cbiesinger, ojan+watch_chromium.org, szager+layoutwatch_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

Collapse bottom margins of a last child and its parent if parent's height=auto This patch adds support of the margin collapsing case for the next vertically-adjacent box edges: - bottom margin of a last in-flow child and bottom margin of its parent if the parent has 'auto' computed height W3C spec: https://www.w3.org/TR/CSS2/box.html#collapsing-margins BUG=635619 Committed: https://crrev.com/329849949a9a4d49593c75167f2fc6fc8f405d48 Cr-Commit-Position: refs/heads/master@{#418407}

Patch Set 1 #

Total comments: 12

Patch Set 2 : fixed comments #

Patch Set 3 : add missed ng_units.h #

Patch Set 4 : add CORE_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -31 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 9 chunks +71 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.cc View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
Gleb Lanbin
4 years, 3 months ago (2016-09-13 18:49:53 UTC) #3
cbiesinger
some drive-by nits https://codereview.chromium.org/2336353002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc (right): https://codereview.chromium.org/2336353002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode26 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:26: ; I recently learned that the ...
4 years, 3 months ago (2016-09-13 18:59:49 UTC) #5
ikilpatrick
lgtm https://codereview.chromium.org/2336353002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2336353002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode115 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:115: if (current_child_->Style()->height().isAuto()) { not logicalHeight here? https://codereview.chromium.org/2336353002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File ...
4 years, 3 months ago (2016-09-13 19:08:39 UTC) #6
Gleb Lanbin
thanks for the review https://codereview.chromium.org/2336353002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2336353002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode115 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:115: if (current_child_->Style()->height().isAuto()) { On 2016/09/13 ...
4 years, 3 months ago (2016-09-13 19:33:45 UTC) #7
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/2336353002/80001
4 years, 3 months ago (2016-09-13 23:16:26 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 3 months ago (2016-09-13 23:22:55 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 23:25:19 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/329849949a9a4d49593c75167f2fc6fc8f405d48
Cr-Commit-Position: refs/heads/master@{#418407}

Powered by Google App Engine
This is Rietveld 408576698