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

Issue 2267383003: [LayoutNG] Introduces NGPhysicalConstraintSpace and makes NGConstraintSpace a "view". (Closed)

Created:
4 years, 4 months ago by ikilpatrick
Modified:
4 years, 3 months ago
Reviewers:
cbiesinger, eae
CC:
chromium-reviews, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Introduces NGPhysicalConstraintSpace and makes NGConstraintSpace a "view". NGConstraintSpace now has a backing NGPhysicalConstaintSpace and provides abstract coordinate system accessors for everything. Makes NG*ConstraintSpace GarbagedCollected as well as we'll need this once we move to a state machine / for caching fragment results. BUG=635619 Committed: https://crrev.com/6f16535150edfba413105be7327ab4bb3ce630d7 Cr-Commit-Position: refs/heads/master@{#414745}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : .. #

Total comments: 21

Patch Set 4 : now with test. #

Patch Set 5 : .. #

Patch Set 6 : .. #

Total comments: 25

Patch Set 7 : address comments. #

Patch Set 8 : . #

Patch Set 9 : fix win compile? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -193 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box.cc View 1 2 3 4 5 6 2 chunks +12 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 2 3 4 5 6 7 4 chunks +44 lines, -74 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 2 3 4 5 6 7 8 1 chunk +87 lines, -55 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_derived_constraint_space.h View 1 2 3 4 5 6 7 1 chunk +27 lines, -14 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_derived_constraint_space.cc View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc View 1 2 3 4 5 6 7 7 chunks +30 lines, -26 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_writing_mode.h View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_writing_mode.cc View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (34 generated)
ikilpatrick
I'm not attached to any names is this patch, if y'all have a better name ...
4 years, 4 months ago (2016-08-24 17:36:50 UTC) #10
eae
https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc File third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc (right): https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc#newcode26 third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc:26: box.layout(*constraintSpace); Mixing pointers and references like this is gross ...
4 years, 4 months ago (2016-08-24 17:49:52 UTC) #13
cbiesinger
I will have to resume this review later but here are some comments so far! ...
4 years, 4 months ago (2016-08-24 18:18:35 UTC) #15
eae
https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h (right): https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h#newcode53 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h:53: void SetContainerSize(NGLogicalSize container_size); On 2016/08/24 18:18:35, cbiesinger wrote: > ...
4 years, 4 months ago (2016-08-24 18:20:31 UTC) #17
ikilpatrick
https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc File third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc (right): https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc#newcode24 third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc:24: const auto constraintSpace = NGConstraintSpace::fromLayoutObject(*this); On 2016/08/24 18:18:35, cbiesinger ...
4 years, 4 months ago (2016-08-24 19:17:41 UTC) #21
eae
On 2016/08/24 19:17:41, ikilpatrick wrote: > https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc > File third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc (right): > > https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc#newcode24 > ...
4 years, 4 months ago (2016-08-24 20:01:47 UTC) #23
eae
To clarify, the way I see it a layout would create a new derived constraint ...
4 years, 4 months ago (2016-08-24 20:17:07 UTC) #26
ikilpatrick
On 2016/08/24 20:01:47, eae wrote: > On 2016/08/24 19:17:41, ikilpatrick wrote: > > > https://codereview.chromium.org/2267383003/diff/40001/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc ...
4 years, 4 months ago (2016-08-24 20:18:39 UTC) #27
eae
On 2016/08/24 20:18:39, ikilpatrick wrote: > On 2016/08/24 20:01:47, eae wrote: > > On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 20:24:20 UTC) #28
ikilpatrick
On 2016/08/24 20:24:20, eae wrote: > On 2016/08/24 20:18:39, ikilpatrick wrote: > > On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 20:40:12 UTC) #29
eae
Sounds great to me, thanks for listening!
4 years, 4 months ago (2016-08-24 20:42:31 UTC) #30
cbiesinger
I'm actually not even sure that you need to create a new constraint space even ...
4 years, 4 months ago (2016-08-24 20:52:48 UTC) #31
cbiesinger
Also, previous comments here made me wonder if the constraint space we pass to the ...
4 years, 4 months ago (2016-08-24 21:24:39 UTC) #32
eae
On 2016/08/24 21:24:39, cbiesinger wrote: > Also, previous comments here made me wonder if the ...
4 years, 4 months ago (2016-08-24 21:49:43 UTC) #33
cbiesinger
On 2016/08/24 21:49:43, eae wrote: > On 2016/08/24 21:24:39, cbiesinger wrote: > > Also, previous ...
4 years, 4 months ago (2016-08-24 22:03:10 UTC) #34
eae
On 2016/08/24 22:03:10, cbiesinger wrote: > On 2016/08/24 21:49:43, eae wrote: > > On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 22:19:34 UTC) #35
ikilpatrick
So the NGDerivedConstraintSpace will require follow up patches to get offset, etc working correctly; but ...
4 years, 3 months ago (2016-08-25 21:24:33 UTC) #36
cbiesinger
https://codereview.chromium.org/2267383003/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_box.cc File third_party/WebKit/Source/core/layout/ng/ng_box.cc (right): https://codereview.chromium.org/2267383003/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode29 third_party/WebKit/Source/core/layout/ng/ng_box.cc:29: NGConstraintSpace* childConstraintSpace = new NGConstraintSpace( For new code, can ...
4 years, 3 months ago (2016-08-25 22:22:16 UTC) #37
eae
LGTM
4 years, 3 months ago (2016-08-25 22:30:45 UTC) #38
ikilpatrick
https://codereview.chromium.org/2267383003/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_box.cc File third_party/WebKit/Source/core/layout/ng/ng_box.cc (right): https://codereview.chromium.org/2267383003/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode29 third_party/WebKit/Source/core/layout/ng/ng_box.cc:29: NGConstraintSpace* childConstraintSpace = new NGConstraintSpace( On 2016/08/25 22:22:15, cbiesinger ...
4 years, 3 months ago (2016-08-25 23:14:29 UTC) #40
cbiesinger
lgtm https://codereview.chromium.org/2267383003/diff/100001/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/2267383003/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode27 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:27: ? NGLogicalSize(physical_space_->container_size_.width, On 2016/08/25 23:14:29, ikilpatrick wrote: > ...
4 years, 3 months ago (2016-08-25 23:17:59 UTC) #42
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/2267383003/160001
4 years, 3 months ago (2016-08-26 16:23:50 UTC) #54
ikilpatrick
https://codereview.chromium.org/2267383003/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/2267383003/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc#newcode21 third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc:21: const NGPhysicalConstraintSpace& other) On 2016/08/25 23:17:59, cbiesinger wrote: > ...
4 years, 3 months ago (2016-08-26 16:24:26 UTC) #55
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-08-26 17:59:50 UTC) #57
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 18:12:56 UTC) #59
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6f16535150edfba413105be7327ab4bb3ce630d7
Cr-Commit-Position: refs/heads/master@{#414745}

Powered by Google App Engine
This is Rietveld 408576698