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

Issue 2483683003: [LayoutNG] Split apart storage for AvailableSize and PercentageSize. (Closed)

Created:
4 years, 1 month ago by ikilpatrick
Modified:
4 years, 1 month ago
Reviewers:
cbiesinger, eae
CC:
chromium-reviews, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, glebl+reviews_chromium.org, atotic+reviews_chromium.org, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, zoltan1, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Split apart storage for AvailableSize and PercentageSize. Additionally removes ContainerSize. We've got lots of small corner cases which we aren't handling correctly in ng_length_utils (i.e. orthoganal writing mode %-resolution). But will fix these in follow-up patch. BUG=635619 Committed: https://crrev.com/0f0f0b8544ca09a87a7c855210ca8fc1128b5a56 Cr-Commit-Position: refs/heads/master@{#430434}

Patch Set 1 #

Total comments: 4

Patch Set 2 : percentage_size -> percentage_resolution_size #

Patch Set 3 : rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -94 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box.cc View 1 3 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 3 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 4 chunks +19 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc View 1 2 chunks +18 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 7 chunks +15 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc View 1 2 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.cc View 2 chunks +7 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units_test.cc View 1 chunk +11 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
ikilpatrick
https://codereview.chromium.org/2483683003/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/2483683003/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode131 third_party/WebKit/Source/core/layout/ng/ng_box.cc:131: builder.SetPercentageSize(NGLogicalSize(LayoutUnit(), LayoutUnit())); ? percentages should resolve to 0 here?
4 years, 1 month ago (2016-11-07 01:26:04 UTC) #4
eae
LGTM w/optional suggestion https://codereview.chromium.org/2483683003/diff/1/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/2483683003/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h#newcode69 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h:69: NGLogicalSize PercentageSize() const; PercentageSize makes it ...
4 years, 1 month ago (2016-11-07 01:29:44 UTC) #5
ikilpatrick
https://codereview.chromium.org/2483683003/diff/1/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/2483683003/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h#newcode69 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h:69: NGLogicalSize PercentageSize() const; On 2016/11/07 01:29:44, eae wrote: > ...
4 years, 1 month ago (2016-11-07 02:00:31 UTC) #8
cbiesinger
lgtm https://codereview.chromium.org/2483683003/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/2483683003/diff/1/third_party/WebKit/Source/core/layout/ng/ng_box.cc#newcode131 third_party/WebKit/Source/core/layout/ng/ng_box.cc:131: builder.SetPercentageSize(NGLogicalSize(LayoutUnit(), LayoutUnit())); On 2016/11/07 01:26:04, ikilpatrick wrote: > ...
4 years, 1 month ago (2016-11-07 20:57:43 UTC) #11
cbiesinger
> (i.e. orthoganal writing mode %-resolution). BTW, how do we mishandle that? I thought that ...
4 years, 1 month ago (2016-11-07 20:58:27 UTC) #12
ikilpatrick
On 2016/11/07 20:58:27, cbiesinger wrote: > > (i.e. orthoganal writing mode %-resolution). > > BTW, ...
4 years, 1 month ago (2016-11-07 22:51:04 UTC) #15
cbiesinger
On 2016/11/07 22:51:04, ikilpatrick wrote: > On 2016/11/07 20:58:27, cbiesinger wrote: > > > (i.e. ...
4 years, 1 month ago (2016-11-07 23:14:26 UTC) #16
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/2483683003/40001
4 years, 1 month ago (2016-11-07 23:36:28 UTC) #20
atotic
On 2016/11/07 at 23:14:26, cbiesinger wrote: > On 2016/11/07 22:51:04, ikilpatrick wrote: > > On ...
4 years, 1 month ago (2016-11-08 00:01:28 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-08 00:12:11 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 00:33:13 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0f0f0b8544ca09a87a7c855210ca8fc1128b5a56
Cr-Commit-Position: refs/heads/master@{#430434}

Powered by Google App Engine
This is Rietveld 408576698