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

Issue 2346473003: Do not collapse margins with padding/border b/w parent and first/last child (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, 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

Do not collapse margins with padding/border b/w parent and first/last child Do not collapse top/bottom margins if there is a padding or border between first/last in-flow child and its parent. W3C spec: https://www.w3.org/TR/CSS2/box.html#collapsing-margins BUG=635619 Committed: https://crrev.com/3c1dea8b946e05f7a48371f8413a23c47acae009 Cr-Commit-Position: refs/heads/master@{#418685}

Patch Set 1 #

Total comments: 12

Patch Set 2 : renamed TOP/BOTTOM to BLOCK-{START|END} #

Total comments: 2

Patch Set 3 : synced to the head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -11 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 2 chunks +25 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 chunk +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.cc View 1 2 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
Gleb Lanbin
4 years, 3 months ago (2016-09-14 18:22:45 UTC) #3
ikilpatrick
lgtm https://codereview.chromium.org/2346473003/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/2346473003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode123 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:123: // Collapse TOP margins if there is no ...
4 years, 3 months ago (2016-09-14 18:45:26 UTC) #5
ikilpatrick
also, this margin collapsing code makes me so happy compared to the old :) (still ...
4 years, 3 months ago (2016-09-14 18:48:27 UTC) #6
Gleb Lanbin
thanks for the review! https://codereview.chromium.org/2346473003/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/2346473003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode123 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:123: // Collapse TOP margins if ...
4 years, 3 months ago (2016-09-14 18:58:32 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/2346473003/40001
4 years, 3 months ago (2016-09-14 18:59:25 UTC) #10
cbiesinger
https://codereview.chromium.org/2346473003/diff/40001/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/2346473003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode119 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:119: computeBorderAndPaddingBlockStart(space, *current_child_->Style()); These functions were removed in https://codereview.chromium.org/2330153002/, try ...
4 years, 3 months ago (2016-09-14 19:12:18 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/128981) win_clang on master.tryserver.chromium.win (JOB_FAILED, ...
4 years, 3 months ago (2016-09-14 19:13:22 UTC) #13
Gleb Lanbin
https://codereview.chromium.org/2346473003/diff/40001/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/2346473003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode119 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:119: computeBorderAndPaddingBlockStart(space, *current_child_->Style()); On 2016/09/14 19:12:18, cbiesinger wrote: > These ...
4 years, 3 months ago (2016-09-14 19:41:27 UTC) #14
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/2346473003/60001
4 years, 3 months ago (2016-09-14 19:42:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/141593)
4 years, 3 months ago (2016-09-14 20:52:29 UTC) #19
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/2346473003/60001
4 years, 3 months ago (2016-09-14 20:55:24 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-14 21:39:11 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 21:41:58 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3c1dea8b946e05f7a48371f8413a23c47acae009
Cr-Commit-Position: refs/heads/master@{#418685}

Powered by Google App Engine
This is Rietveld 408576698