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

Issue 2519263002: [layout-ng] Convert ng_block_layout_algorithm to yield to the coordinator (Closed)

Created:
4 years, 1 month ago by shans
Modified:
4 years ago
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, cbiesinger, chromium-reviews, eae+blinkwatch, glebl+reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This patch modifies ng_block_layout_algorithm to yield child algorithms to the coordinator rather than run them directly. (This is step 5 of https://docs.google.com/document/d/1vUmyaZoIqnVyvqAf5lFhnh_BdHYknLqViLISZiy-Iek/edit#) BUG=636993 Committed: https://crrev.com/b5580819129cd70ee00e30df0b9ed2516c98e402 Cr-Commit-Position: refs/heads/master@{#437509}

Patch Set 1 #

Patch Set 2 : Use coordinator inside minmax fallback. #

Total comments: 4

Patch Set 3 : changes post-merge + review comments #

Patch Set 4 : simplify block layout algorithm by adding an extra phase #

Total comments: 7

Patch Set 5 : review comments #

Patch Set 6 : Modify block_layout_algorithm test to use coordinator and assert that a block_layout_algorithm is t… #

Patch Set 7 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -73 lines) Patch
M third_party/WebKit/Source/core/layout/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 2 3 4 5 6 3 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 6 chunks +31 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 3 4 5 2 chunks +13 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.h View 1 2 3 4 5 6 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.cc View 1 2 3 4 5 6 6 chunks +23 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h View 1 2 3 4 5 3 chunks +14 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_coordinator.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_coordinator.cc View 1 2 3 4 5 6 3 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.cc View 1 2 2 chunks +11 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_legacy_block_layout_algorithm.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_legacy_block_layout_algorithm.cc View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (15 generated)
eae
This looks great! Let me know when you're ready for review.
4 years ago (2016-11-23 22:05:15 UTC) #3
shans
On 2016/11/23 at 22:05:15, eae wrote: > This looks great! Let me know when you're ...
4 years ago (2016-12-01 00:12:38 UTC) #4
eae
LGTM https://codereview.chromium.org/2519263002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc File third_party/WebKit/Source/core/layout/ng/ng_block_node.cc (right): https://codereview.chromium.org/2519263002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc#newcode103 third_party/WebKit/Source/core/layout/ng/ng_block_node.cc:103: builder.SetAvailableSize(NGLogicalSize(LayoutUnit(), LayoutUnit())); Isn't 0/0 the default for the ...
4 years ago (2016-12-02 09:57:22 UTC) #5
shans
I tweaked the block layout algorithm to remove repeated code. PTAL. Should I get Ian ...
4 years ago (2016-12-05 21:11:13 UTC) #6
eae
LGTM, thank you. Please change the commit message to have a [LayoutNG] prefix and include ...
4 years ago (2016-12-06 10:40:48 UTC) #7
ikilpatrick
https://codereview.chromium.org/2519263002/diff/60001/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/2519263002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode42 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:42: while (algorithm.Layout(child_frag, &frag, &next_algorithm) != why isn't this using ...
4 years ago (2016-12-06 21:45:43 UTC) #9
shans
There was an additional comment that doesn't seem aligned with the code, asking whether NGLayoutCoordinator ...
4 years ago (2016-12-07 21:00:52 UTC) #11
ikilpatrick
https://codereview.chromium.org/2519263002/diff/60001/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/2519263002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode42 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:42: while (algorithm.Layout(child_frag, &frag, &next_algorithm) != On 2016/12/07 21:00:52, shans ...
4 years ago (2016-12-07 21:12:20 UTC) #12
shans
On 2016/12/07 at 21:12:20, ikilpatrick wrote: > https://codereview.chromium.org/2519263002/diff/60001/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/2519263002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode42 ...
4 years ago (2016-12-07 21:27:15 UTC) #13
atotic
https://codereview.chromium.org/2519263002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc File third_party/WebKit/Source/core/layout/ng/ng_block_node.cc (right): https://codereview.chromium.org/2519263002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc#newcode124 third_party/WebKit/Source/core/layout/ng/ng_block_node.cc:124: NGLayoutCoordinator* minmax_coordinator = I thought LayoutCoordinator would be passed ...
4 years ago (2016-12-07 21:28:48 UTC) #15
ikilpatrick
On 2016/12/07 21:27:15, shans wrote: > On 2016/12/07 at 21:12:20, ikilpatrick wrote: > > > ...
4 years ago (2016-12-07 21:29:10 UTC) #16
shans
@ikilpatrick how's this?
4 years ago (2016-12-08 01:08:54 UTC) #17
ikilpatrick
lgtm
4 years ago (2016-12-08 21:55:59 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/2519263002/100001
4 years ago (2016-12-08 21:56:38 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/121027) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-08 22:00:25 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/2519263002/120001
4 years ago (2016-12-09 05:19:23 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/285831)
4 years ago (2016-12-09 07:20:20 UTC) #28
mstensho (USE GERRIT)
Since landing failed again, I'd just like to point out that I think the commit ...
4 years ago (2016-12-09 08:40:10 UTC) #30
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/2519263002/120001
4 years ago (2016-12-09 08:46:13 UTC) #32
mstensho (USE GERRIT)
On 2016/12/09 08:46:13, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years ago (2016-12-09 08:53:01 UTC) #33
shans
On 2016/12/09 at 08:53:01, mstensho wrote: > On 2016/12/09 08:46:13, commit-bot: I haz the power ...
4 years ago (2016-12-09 09:53:08 UTC) #34
mstensho (USE GERRIT)
On 2016/12/09 09:53:08, shans wrote: > On 2016/12/09 at 08:53:01, mstensho wrote: > > On ...
4 years ago (2016-12-09 09:57:45 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-09 09:57:58 UTC) #37
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/b5580819129cd70ee00e30df0b9ed2516c98e402 Cr-Commit-Position: refs/heads/master@{#437509}
4 years ago (2016-12-09 09:59:44 UTC) #39
mstensho (USE GERRIT)
Yup, the title is not part of the commit message.
4 years ago (2016-12-09 10:10:10 UTC) #40
shans
4 years ago (2016-12-09 10:35:23 UTC) #41
Message was sent while issue was closed.
On 2016/12/09 at 10:10:10, mstensho wrote:
> Yup, the title is not part of the commit message.

Huh, fair enough. I guess I must have removed it from the description when
fixing the commit message earlier.

Powered by Google App Engine
This is Rietveld 408576698