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

Issue 2389823003: Fix incorrectly calculated content_size for fragments that create new FC (Closed)

Created:
4 years, 2 months ago by Gleb Lanbin
Modified:
4 years, 2 months ago
Reviewers:
cbiesinger, ikilpatrick
CC:
chromium-reviews, 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

Fix incorrectly calculated content_size for fragments that create new FC This patch adds MarginStrut.BlockEndSum to the fragment's content size if the fragment establishes a new formatting context. The change is tested with layout_ng virtual test suite located in fast/block/basic. BUG=635619 Committed: https://crrev.com/1163ff6253bce80dde1d8960c80ed5deaf32c0a7 Cr-Commit-Position: refs/heads/master@{#422878}

Patch Set 1 #

Total comments: 2

Patch Set 2 : keep the Collapsing margins logic consolidated in one place #

Total comments: 1

Patch Set 3 : Regroup the code to put together the Collapsing Margins logic for NewFormattingContext's fragments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -37 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 5 chunks +37 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
Gleb Lanbin
4 years, 2 months ago (2016-10-03 19:53:54 UTC) #5
cbiesinger
I would probably separate out the addition of the virtual test suite https://codereview.chromium.org/2389823003/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 ...
4 years, 2 months ago (2016-10-03 19:58:27 UTC) #7
cbiesinger
> That does not look right, shouldn't this be handled by the parent? We don't ...
4 years, 2 months ago (2016-10-03 20:13:07 UTC) #8
Gleb Lanbin
PTAL https://codereview.chromium.org/2389823003/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/2389823003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode111 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:111: content_size_ += builder_->MarginStrut().BlockEndSum(); On 2016/10/03 19:58:27, cbiesinger wrote: ...
4 years, 2 months ago (2016-10-04 14:47:49 UTC) #12
cbiesinger
On 2016/10/04 14:47:49, glebl wrote: > PTAL > > https://codereview.chromium.org/2389823003/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): ...
4 years, 2 months ago (2016-10-04 15:03:03 UTC) #15
ikilpatrick
this looks great, just one question about clearing the margin strut :) https://codereview.chromium.org/2389823003/diff/60001/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 ...
4 years, 2 months ago (2016-10-04 16:21:36 UTC) #18
Gleb Lanbin
On 2016/10/04 16:21:36, ikilpatrick wrote: > this looks great, just one question about clearing the ...
4 years, 2 months ago (2016-10-04 17:29:11 UTC) #22
ikilpatrick
lgtm, thanks!
4 years, 2 months ago (2016-10-04 17:56:42 UTC) #23
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/2389823003/100001
4 years, 2 months ago (2016-10-04 17:59:11 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 2 months ago (2016-10-04 19:09:22 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 19:15:24 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1163ff6253bce80dde1d8960c80ed5deaf32c0a7
Cr-Commit-Position: refs/heads/master@{#422878}

Powered by Google App Engine
This is Rietveld 408576698