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

Issue 2835233004: Collapse margins before child that uses legacy layout. (Closed)

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

Description

Collapse margins before child that uses legacy layout. Due to the fact that legacy layout doesn't have a notion of MarginStrut we can't calculate margins correctly for use cases that need to use both layout engines. This patch collapses margins and update the parent BFC if the next child cannot be layed out using LayoutNG(ex. tables). BUG=635619 TESTS=bunch of fixed tests in CSS2.1 and fast/block test suites Review-Url: https://codereview.chromium.org/2835233004 Cr-Commit-Position: refs/heads/master@{#466820} Committed: https://chromium.googlesource.com/chromium/src/+/da6a43e5fabf5aba0ee611e593d71809851727b0

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove TODO #

Patch Set 3 : margin-collapse/100.html is still broken on Windows because of LayoutInline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -41 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 12 chunks +10 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (12 generated)
Gleb Lanbin
3 years, 8 months ago (2017-04-24 19:28:41 UTC) #2
ikilpatrick
lgtm https://codereview.chromium.org/2835233004/diff/1/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/2835233004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode347 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:347: // TODO(glebl): Handle the case when a legacy ...
3 years, 8 months ago (2017-04-24 20:27:50 UTC) #5
Gleb Lanbin
https://codereview.chromium.org/2835233004/diff/1/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/2835233004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode347 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:347: // TODO(glebl): Handle the case when a legacy block ...
3 years, 8 months ago (2017-04-24 21:15:34 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/2835233004/40001
3 years, 8 months ago (2017-04-24 23:17:58 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 23:24:18 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/da6a43e5fabf5aba0ee611e593d7...

Powered by Google App Engine
This is Rietveld 408576698