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

Issue 2266313002: [layoutng] Create a more correct constraint space for children (Closed)

Created:
4 years, 4 months ago by cbiesinger
Modified:
4 years, 4 months ago
Reviewers:
ikilpatrick, 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] Create a more correct constraint space for children At the start of layout, create a new constraint space with our size but the existing exclusions. This will be used as the base for layout out our children. In the future, we will call layoutOpportunities() on this constraint space to find the correct place for our children. Copying the offset should not be necessary as we start with a fresh (0,0) offset for our children, relative to us. R=ikilpatrick@chromium.org,eae@chromium.org BUG=635619 Committed: https://crrev.com/e66cd9caa74be985f45c426546d93555c2a5df53 Cr-Commit-Position: refs/heads/master@{#413817}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 chunks +10 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
cbiesinger
4 years, 4 months ago (2016-08-23 00:28:19 UTC) #1
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/2266313002/1
4 years, 4 months ago (2016-08-23 00:41:52 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 4 months ago (2016-08-23 00:41:54 UTC) #5
ikilpatrick
https://codereview.chromium.org/2266313002/diff/1/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/2266313002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode27 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:27: computeBlockSizeForFragment(constraintSpace, *m_style, LayoutUnit(-1)); Is the -1 correct? Should it ...
4 years, 4 months ago (2016-08-23 00:49:04 UTC) #8
cbiesinger
https://codereview.chromium.org/2266313002/diff/1/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/2266313002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode27 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:27: computeBlockSizeForFragment(constraintSpace, *m_style, LayoutUnit(-1)); On 2016/08/23 00:49:04, ikilpatrick wrote: > ...
4 years, 4 months ago (2016-08-23 01:06:55 UTC) #10
cbiesinger
Come to think of it, ng_length_utils does not actually handle indefinite percentages correctly :(
4 years, 4 months ago (2016-08-23 01:08:09 UTC) #12
cbiesinger
On 2016/08/23 01:08:09, cbiesinger wrote: > Come to think of it, ng_length_utils does not actually ...
4 years, 4 months ago (2016-08-23 15:59:11 UTC) #15
eae
https://codereview.chromium.org/2266313002/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/2266313002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode26 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:26: // TODO(layout-ng): For quirks mode, should we pass blockSize ...
4 years, 4 months ago (2016-08-23 16:54:09 UTC) #16
cbiesinger
On 2016/08/23 16:54:09, eae wrote: > https://codereview.chromium.org/2266313002/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/2266313002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode26 ...
4 years, 4 months ago (2016-08-23 17:53:36 UTC) #17
eae
On 2016/08/23 17:53:36, cbiesinger wrote: > On 2016/08/23 16:54:09, eae wrote: > > > https://codereview.chromium.org/2266313002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc ...
4 years, 4 months ago (2016-08-23 18:07:57 UTC) #18
ikilpatrick
lgtm
4 years, 4 months ago (2016-08-23 19:42:15 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/2266313002/20001
4 years, 4 months ago (2016-08-23 19:43:42 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-23 19:50:48 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 19:52:19 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e66cd9caa74be985f45c426546d93555c2a5df53
Cr-Commit-Position: refs/heads/master@{#413817}

Powered by Google App Engine
This is Rietveld 408576698