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

Issue 2457013004: Use NGLogicalRect instead of NGExclusion for exclusions. (Closed)

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

Use NGLogicalRect instead of NGExclusion to work with exclusions. This patch does the following: - Delete NGExclusion - Change the code to use NGLogicalRect to store exclusions - Make NGPhysicalConstraintSpace to own the list of exclusions through Vector<std::unique_ptr> - Introduce WRITING_MODE_IGNORED macros that can be used to annotate cases where the writing mode is inored BUG=635619 Committed: https://crrev.com/250a6979a3311cb8a39ca7d7f316353550362f86 Cr-Commit-Position: refs/heads/master@{#428907}

Patch Set 1 #

Total comments: 6

Patch Set 2 : move "space" to the previous line #

Patch Set 3 : remove builder from NGLogicalRect #

Total comments: 7

Patch Set 4 : use WTF::wrapUnique because MakeUnique is not available in Blink #

Total comments: 4

Patch Set 5 : renamed IsWithing to IsContained #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -141 lines) Patch
M third_party/WebKit/Source/core/layout/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 2 chunks +13 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc View 1 2 3 4 5 chunks +42 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment.cc View 1 chunk +4 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc View 1 2 3 4 8 chunks +59 lines, -64 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 +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.cc View 2 chunks +4 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_macros.h View 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h View 1 2 3 4 3 chunks +4 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 2 3 4 2 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (30 generated)
Gleb Lanbin
4 years, 1 month ago (2016-10-28 20:26:59 UTC) #3
Gleb Lanbin
On 2016/10/28 20:26:59, glebl wrote: per Ian's suggestion, layout/ng/ptr_util.h will be moved to WTF/PtrUtil.h http://crrev.com/2455313003
4 years, 1 month ago (2016-10-28 23:05:16 UTC) #15
ikilpatrick
looks good! would like others to have a look and see what they think of ...
4 years, 1 month ago (2016-10-28 23:18:25 UTC) #17
Gleb Lanbin
https://codereview.chromium.org/2457013004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): https://codereview.chromium.org/2457013004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode88 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:88: "space."); On 2016/10/28 23:18:24, ikilpatrick wrote: > previous line? ...
4 years, 1 month ago (2016-10-28 23:54:09 UTC) #18
Gleb Lanbin
On 2016/10/28 23:54:09, glebl wrote: > https://codereview.chromium.org/2457013004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc > File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): > > https://codereview.chromium.org/2457013004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode88 > ...
4 years, 1 month ago (2016-10-28 23:58:36 UTC) #19
Gleb Lanbin
On 2016/10/28 23:58:36, glebl wrote: > On 2016/10/28 23:54:09, glebl wrote: > > > https://codereview.chromium.org/2457013004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc ...
4 years, 1 month ago (2016-10-31 20:57:15 UTC) #21
ikilpatrick
lgtm https://codereview.chromium.org/2457013004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc (right): https://codereview.chromium.org/2457013004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc#newcode50 third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc:50: exclusions_.append(MakeUnique<const NGLogicalRect>(exclusion)); util the wtf ptr_util goes through ...
4 years, 1 month ago (2016-10-31 21:36:08 UTC) #24
Gleb Lanbin
thanks for the review https://codereview.chromium.org/2457013004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc (right): https://codereview.chromium.org/2457013004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc#newcode50 third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc:50: exclusions_.append(MakeUnique<const NGLogicalRect>(exclusion)); On 2016/10/31 21:36:08, ...
4 years, 1 month ago (2016-10-31 23:08:18 UTC) #27
atotic
https://codereview.chromium.org/2457013004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_units.h File third_party/WebKit/Source/core/layout/ng/ng_units.h (right): https://codereview.chromium.org/2457013004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_units.h#newcode107 third_party/WebKit/Source/core/layout/ng/ng_units.h:107: bool IsWithin(const NGLogicalRect& other) const; Confusing to me. Does ...
4 years, 1 month ago (2016-10-31 23:42:41 UTC) #28
Gleb Lanbin
https://codereview.chromium.org/2457013004/diff/120001/third_party/WebKit/Source/core/layout/ng/ng_units.h File third_party/WebKit/Source/core/layout/ng/ng_units.h (right): https://codereview.chromium.org/2457013004/diff/120001/third_party/WebKit/Source/core/layout/ng/ng_units.h#newcode107 third_party/WebKit/Source/core/layout/ng/ng_units.h:107: bool IsWithin(const NGLogicalRect& other) const; On 2016/10/31 23:42:40, atotic2 ...
4 years, 1 month ago (2016-11-01 00:00:43 UTC) #29
Gleb Lanbin
adding dpranke@ to review BUILD.gn
4 years, 1 month ago (2016-11-01 00:04:33 UTC) #31
Gleb Lanbin
4 years, 1 month ago (2016-11-01 00:04:52 UTC) #33
Dirk Pranke
BUILD.gn change lgtm.
4 years, 1 month ago (2016-11-01 00:06:56 UTC) #37
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/2457013004/110016
4 years, 1 month ago (2016-11-01 01:33:52 UTC) #42
commit-bot: I haz the power
Committed patchset #5 (id:110016)
4 years, 1 month ago (2016-11-01 01:38:57 UTC) #44
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/250a6979a3311cb8a39ca7d7f316353550362f86 Cr-Commit-Position: refs/heads/master@{#428907}
4 years, 1 month ago (2016-11-01 01:42:20 UTC) #46
kjellander_chromium
A revert of this CL (patchset #5 id:110016) has been created in https://codereview.chromium.org/2467803002/ by kjellander@chromium.org. ...
4 years, 1 month ago (2016-11-01 10:29:54 UTC) #47
cbiesinger
https://codereview.chromium.org/2457013004/diff/110016/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc File third_party/WebKit/Source/core/layout/ng/ng_fragment.cc (left): https://codereview.chromium.org/2457013004/diff/110016/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc#oldcode13 third_party/WebKit/Source/core/layout/ng/ng_fragment.cc:13: // Changing the writing mode establishes a new formatting ...
4 years, 1 month ago (2016-11-01 15:02:01 UTC) #48
Gleb Lanbin
On 2016/11/01 15:02:01, cbiesinger wrote: > https://codereview.chromium.org/2457013004/diff/110016/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc > File third_party/WebKit/Source/core/layout/ng/ng_fragment.cc (left): > > https://codereview.chromium.org/2457013004/diff/110016/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc#oldcode13 > ...
4 years, 1 month ago (2016-11-01 17:08:15 UTC) #49
Gleb Lanbin
4 years, 1 month ago (2016-11-01 17:08:27 UTC) #50
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698