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

Issue 2462153002: [layoutng] Support computing min-content and max-content (Closed)

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

[layoutng] Support computing min-content and max-content This is just the first step -- we still need to integrate this into ng_length_utils as the next step, and optimize this by implementing ComputeMinAndMaxContentSizes on the NGBLockLayoutAlgorithm. In the meantime this implements the synthesized min-content and max-content as described in the layoutng design doc: https://docs.google.com/document/d/1uxbDh4uONFQOiGuiumlJBLGgO4KDWB8ZEkp7Rd47fw4/edit#heading=h.bkkc2a8yyuly The unit test is very simple, but until we implement line layout we can't really write a more comprehensive test. R=ikilpatrick@chromium.org,atotic@chromium.org,eae@chromium.org BUG=635619 Committed: https://crrev.com/2b4efe85b807d2fa034acd8108aa994148708e0a Cr-Commit-Position: refs/heads/master@{#429492}

Patch Set 1 #

Total comments: 17

Patch Set 2 : review comments #

Total comments: 4

Patch Set 3 : more review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -13 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box.h View 1 2 4 chunks +17 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box.cc View 1 2 5 chunks +78 lines, -5 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_box_test.cc View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
cbiesinger
4 years, 1 month ago (2016-10-31 19:19:02 UTC) #1
eae
https://codereview.chromium.org/2462153002/diff/1/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/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode74 third_party/WebKit/Source/core/layout/ng/ng_box.cc:74: FromPlatformDirection(Style()->direction()), builder.ToConstraintSpace()); Presumably once Ian's work is done this ...
4 years, 1 month ago (2016-10-31 19:30:26 UTC) #4
cbiesinger
https://codereview.chromium.org/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.h File third_party/WebKit/Source/core/layout/ng/ng_box.h (right): https://codereview.chromium.org/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.h#newcode37 third_party/WebKit/Source/core/layout/ng/ng_box.h:37: void ComputeMinAndMaxContentSizes(NGFragment** min_content, On 2016/10/31 19:30:26, eae wrote: > ...
4 years, 1 month ago (2016-10-31 19:48:37 UTC) #5
Gleb Lanbin
https://codereview.chromium.org/2462153002/diff/1/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/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode71 third_party/WebKit/Source/core/layout/ng/ng_box.cc:71: builder.SetContainerSize(NGLogicalSize(LayoutUnit(), LayoutUnit())); nit. you can chain SetContainerSize call to ...
4 years, 1 month ago (2016-10-31 19:52:47 UTC) #7
ikilpatrick
https://codereview.chromium.org/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.h File third_party/WebKit/Source/core/layout/ng/ng_box.h (right): https://codereview.chromium.org/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.h#newcode37 third_party/WebKit/Source/core/layout/ng/ng_box.h:37: void ComputeMinAndMaxContentSizes(NGFragment** min_content, On 2016/10/31 19:52:47, glebl wrote: > ...
4 years, 1 month ago (2016-11-01 15:35:11 UTC) #10
atotic
https://codereview.chromium.org/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.h File third_party/WebKit/Source/core/layout/ng/ng_box.h (right): https://codereview.chromium.org/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.h#newcode37 third_party/WebKit/Source/core/layout/ng/ng_box.h:37: void ComputeMinAndMaxContentSizes(NGFragment** min_content, This API will call Layout() in ...
4 years, 1 month ago (2016-11-01 16:59:00 UTC) #11
cbiesinger
PTAL https://codereview.chromium.org/2462153002/diff/1/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/2462153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode71 third_party/WebKit/Source/core/layout/ng/ng_box.cc:71: builder.SetContainerSize(NGLogicalSize(LayoutUnit(), LayoutUnit())); On 2016/10/31 19:52:47, glebl wrote: > ...
4 years, 1 month ago (2016-11-01 19:10:04 UTC) #13
atotic
https://codereview.chromium.org/2462153002/diff/20001/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/2462153002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode67 third_party/WebKit/Source/core/layout/ng/ng_box.cc:67: bool NGBox::ComputeOrSynthesizeMinAndMaxContentSizes( This routine name is 41 chars long, ...
4 years, 1 month ago (2016-11-01 21:56:02 UTC) #17
eae
This is great, we can move to fragments later if we need to for caching. ...
4 years, 1 month ago (2016-11-02 02:34:36 UTC) #18
cbiesinger
https://codereview.chromium.org/2462153002/diff/20001/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/2462153002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode67 third_party/WebKit/Source/core/layout/ng/ng_box.cc:67: bool NGBox::ComputeOrSynthesizeMinAndMaxContentSizes( On 2016/11/01 21:56:02, atotic2 wrote: > This ...
4 years, 1 month ago (2016-11-02 20:18:09 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/2462153002/40001
4 years, 1 month ago (2016-11-02 20:19:03 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-03 01:05:11 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 01:09:52 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2b4efe85b807d2fa034acd8108aa994148708e0a
Cr-Commit-Position: refs/heads/master@{#429492}

Powered by Google App Engine
This is Rietveld 408576698