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

Issue 2816933003: Use Layout Opportunity Iterator to position new FC blocks. (Closed)

Created:
3 years, 8 months ago by Gleb Lanbin
Modified:
3 years, 8 months ago
Reviewers:
cbiesinger, 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

Use Layout Opportunity Iterator to position new FC blocks. This patch fixes the use case when we need to use Layout Opportunity Iterator to position a block that establishes a new formatting context. BUG=635619 TEST=NGBlockLayoutAlgorithmTest.NewFcBlockWithAdjoiningFloatCollapsesMargins Review-Url: https://codereview.chromium.org/2816933003 Cr-Commit-Position: refs/heads/master@{#465899} Committed: https://chromium.googlesource.com/chromium/src/+/c873e8003e60b30ff8bd65fd345b70faf77cd700

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fix comments #

Total comments: 10

Patch Set 3 : Fix comments #

Total comments: 2

Patch Set 4 : use get() instead &* #

Patch Set 5 : make PositionPendingFloats method to be static #

Patch Set 6 : fix the trailing float LayoutTest #

Patch Set 7 : git rebase-update #

Patch Set 8 : fix block-formatting-contexts-{005|007} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -190 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 2 3 4 3 chunks +53 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 6 7 12 chunks +153 lines, -105 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 3 chunks +66 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_floating_object.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_floats_utils.cc View 1 2 3 4 5 6 4 chunks +14 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc View 1 2 3 4 5 6 2 chunks +7 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (31 generated)
Gleb Lanbin
3 years, 8 months ago (2017-04-13 19:52:12 UTC) #3
ikilpatrick
I'll look at this tomorrow morning.
3 years, 8 months ago (2017-04-14 10:42:28 UTC) #8
Gleb Lanbin
On 2017/04/14 10:42:28, ikilpatrick wrote: > I'll look at this tomorrow morning. Also I tried ...
3 years, 8 months ago (2017-04-14 22:46:34 UTC) #9
ikilpatrick
On 2017/04/14 22:46:34, Gleb Lanbin wrote: > On 2017/04/14 10:42:28, ikilpatrick wrote: > > I'll ...
3 years, 8 months ago (2017-04-17 08:17:16 UTC) #10
ikilpatrick
https://codereview.chromium.org/2816933003/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/2816933003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode139 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:139: NGLogicalOffset NGBlockLayoutAlgorithm::PositionNewFc( might be worth writing up here which ...
3 years, 8 months ago (2017-04-17 08:17:25 UTC) #11
Gleb Lanbin
PTAL https://codereview.chromium.org/2816933003/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/2816933003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode139 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:139: NGLogicalOffset NGBlockLayoutAlgorithm::PositionNewFc( On 2017/04/17 08:17:24, ikilpatrick wrote: > ...
3 years, 8 months ago (2017-04-17 21:50:10 UTC) #13
ikilpatrick
lgtm https://codereview.chromium.org/2816933003/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/2816933003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode325 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:325: // Non empty border/padding, new FC use cases ...
3 years, 8 months ago (2017-04-18 13:19:56 UTC) #17
Gleb Lanbin
https://codereview.chromium.org/2816933003/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/2816933003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode325 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:325: // Non empty border/padding, new FC use cases are ...
3 years, 8 months ago (2017-04-18 17:30:20 UTC) #18
cbiesinger
just a couple of brief comments I noticed. also, does this not fix any layout ...
3 years, 8 months ago (2017-04-18 19:36:43 UTC) #24
Gleb Lanbin
On 2017/04/18 19:36:43, cbiesinger wrote: > just a couple of brief comments I noticed. also, ...
3 years, 8 months ago (2017-04-18 20:20:46 UTC) #25
ikilpatrick
https://codereview.chromium.org/2816933003/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/2816933003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode418 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:418: opportunity = FindLayoutOpportunityForFragment( On 2017/04/18 17:30:20, Gleb Lanbin wrote: ...
3 years, 8 months ago (2017-04-18 21:04:11 UTC) #26
Gleb Lanbin
On 2017/04/18 21:04:11, ikilpatrick wrote: > https://codereview.chromium.org/2816933003/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/2816933003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode418 ...
3 years, 8 months ago (2017-04-18 22:07:20 UTC) #27
Gleb Lanbin
On 2017/04/18 22:07:20, Gleb Lanbin wrote: > On 2017/04/18 21:04:11, ikilpatrick wrote: > > > ...
3 years, 8 months ago (2017-04-19 16:25:16 UTC) #28
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/2816933003/150001
3 years, 8 months ago (2017-04-20 04:34:47 UTC) #43
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 04:39:39 UTC) #46
Message was sent while issue was closed.
Committed patchset #8 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/c873e8003e60b30ff8bd65fd345b...

Powered by Google App Engine
This is Rietveld 408576698