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

Issue 2438313003: [LayoutNG] Remove derived constraint spaces from opportunity iterator. (Closed)

Created:
4 years, 2 months ago by ikilpatrick
Modified:
4 years, 1 month ago
Reviewers:
Gleb Lanbin
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

[LayoutNG] Remove derived constraint spaces from opportunity iterator. Creating derived constraint spaces from the layout opportunity iterator wasn't being used for the float case, and isn't needed for the text case either. Removing! BUG=635619 Committed: https://crrev.com/64a8a9fadd701d4049974d569fbea4b99ac49ea0 Cr-Commit-Position: refs/heads/master@{#427201}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : .. #

Total comments: 15

Patch Set 4 : address comments? #

Total comments: 2

Patch Set 5 : rebase. #

Patch Set 6 : rebase. #

Total comments: 2

Patch Set 7 : address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -125 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 6 4 chunks +18 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc View 1 2 3 4 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc View 1 2 3 4 5 6 11 chunks +55 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h View 1 2 3 4 2 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.cc View 1 2 3 4 1 chunk +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h View 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 2 3 4 3 chunks +24 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.cc View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
ikilpatrick
I'm a bit rusty on struct + const etc, please point out if i've done ...
4 years, 2 months ago (2016-10-21 20:24:11 UTC) #2
Gleb Lanbin
https://codereview.chromium.org/2438313003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc File third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc (right): https://codereview.chromium.org/2438313003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc#newcode32 third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc:32: bool IsExclusionWithinSpace(const NGLogicalRect& layout_area, let's stick with "layout opportunity" ...
4 years, 2 months ago (2016-10-21 21:06:59 UTC) #4
ikilpatrick
PTAL https://codereview.chromium.org/2438313003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc File third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc (right): https://codereview.chromium.org/2438313003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc#newcode32 third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc:32: bool IsExclusionWithinSpace(const NGLogicalRect& layout_area, On 2016/10/21 21:06:58, glebl ...
4 years, 2 months ago (2016-10-21 21:45:27 UTC) #6
Gleb Lanbin
lgtm https://codereview.chromium.org/2438313003/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc (right): https://codereview.chromium.org/2438313003/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc#newcode48 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc:48: return !opportunity.IsEmpty() ? opportunity.ToString() : String("(empty)"); .nit please ...
4 years, 2 months ago (2016-10-21 22:13:01 UTC) #8
Gleb Lanbin
https://codereview.chromium.org/2438313003/diff/100001/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/2438313003/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode31 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:31: const NGLogicalRect& opportunity, use NGLayoutOpportunity and below.
4 years, 1 month ago (2016-10-24 16:45:44 UTC) #17
ikilpatrick
thanks :) https://codereview.chromium.org/2438313003/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc (right): https://codereview.chromium.org/2438313003/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc#newcode48 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc:48: return !opportunity.IsEmpty() ? opportunity.ToString() : String("(empty)"); On ...
4 years, 1 month ago (2016-10-24 17:09:19 UTC) #18
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/2438313003/120001
4 years, 1 month ago (2016-10-24 17:09:56 UTC) #21
cbiesinger
Hmm, don't we need the derived constraint space as the space to pass to the ...
4 years, 1 month ago (2016-10-24 17:21:54 UTC) #22
ikilpatrick
On 2016/10/24 17:21:54, cbiesinger wrote: > Hmm, don't we need the derived constraint space as ...
4 years, 1 month ago (2016-10-24 18:09:13 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/2438313003/120001
4 years, 1 month ago (2016-10-24 18:56:17 UTC) #26
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/2438313003/120001
4 years, 1 month ago (2016-10-24 23:17:22 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-25 01:04:21 UTC) #31
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 01:06:10 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/64a8a9fadd701d4049974d569fbea4b99ac49ea0
Cr-Commit-Position: refs/heads/master@{#427201}

Powered by Google App Engine
This is Rietveld 408576698