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

Issue 2681783004: Use Initial Containing Block size for vertical (Closed)

Created:
3 years, 10 months ago by atotic
Modified:
3 years, 10 months ago
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, dgrogan+ng_chromium.org, 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 Initial Containing Block size for vertical This patch fixes the vertical modes assert in ComputeInlineLength. I used box.view()->viewportSizeForViewportUnits() for ICB size per kojii's suggestion. BUG=635619 Review-Url: https://codereview.chromium.org/2681783004 Cr-Commit-Position: refs/heads/master@{#449818} Committed: https://chromium.googlesource.com/chromium/src/+/214a55c8dbf669d7d16e8693ffd93ae0d9d10182

Patch Set 1 #

Total comments: 1

Patch Set 2 : make availableSize always definite #

Patch Set 3 : Update to master #

Patch Set 4 : Better merge of ToConstraintSpace #

Total comments: 30

Patch Set 5 : CR fixes Make ICB size ICB width #

Patch Set 6 : Builder: fix for htb, add tests #

Total comments: 16

Patch Set 7 : Final CR fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -15 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h View 1 5 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc View 1 2 3 4 5 5 chunks +46 lines, -13 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (14 generated)
atotic
3 years, 10 months ago (2017-02-08 22:49:44 UTC) #3
ikilpatrick
https://codereview.chromium.org/2681783004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc File third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc (right): https://codereview.chromium.org/2681783004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc#newcode63 third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc:63: constraint_space.DefiniteAvailableSize().inline_size; This doesn't seem like the right solution here, ...
3 years, 10 months ago (2017-02-09 06:58:43 UTC) #5
cbiesinger
On Feb 9, 2017 1:58 AM, <ikilpatrick@chromium.org> wrote: My intuition is that we'd want to ...
3 years, 10 months ago (2017-02-09 13:32:57 UTC) #6
cbiesinger
On Feb 9, 2017 1:58 AM, <ikilpatrick@chromium.org> wrote: My intuition is that we'd want to ...
3 years, 10 months ago (2017-02-09 13:32:58 UTC) #7
atotic
You've convinced me. I've reworked the code, now AvailabelSize() is always definite. This is enforced ...
3 years, 10 months ago (2017-02-09 20:33:35 UTC) #8
atotic
ptal
3 years, 10 months ago (2017-02-09 20:34:16 UTC) #9
cbiesinger
lgtm https://codereview.chromium.org/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc (right): https://codereview.chromium.org/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc#newcode175 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc:175: return new NGConstraintSpace( It's unfortunate that we still ...
3 years, 10 months ago (2017-02-09 21:36:03 UTC) #10
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/2681783004/60001
3 years, 10 months ago (2017-02-09 21:42:37 UTC) #12
ikilpatrick
https://codereview.chromium.org/2681783004/diff/60001/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/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h#newcode64 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h:64: NGPhysicalSize InitialContainingBlockSize() const { This should never be used ...
3 years, 10 months ago (2017-02-09 22:14:32 UTC) #14
Gleb Lanbin
some minor comments. https://codereview.chromium.org/2681783004/diff/60001/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/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h#newcode134 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h:134: NGPhysicalSize initial_containing_block_size, .nit const NGPhysicalSize& https://codereview.chromium.org/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h#newcode134 ...
3 years, 10 months ago (2017-02-09 22:40:29 UTC) #16
ikilpatrick
Also can you add tests? https://codereview.chromium.org/2681783004/diff/60001/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/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h#newcode64 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h:64: NGPhysicalSize InitialContainingBlockSize() const { ...
3 years, 10 months ago (2017-02-09 22:47:33 UTC) #17
cbiesinger1
https://codereview.chromium.org/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc (right): https://codereview.chromium.org/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc#newcode153 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc:153: initial_containing_block_size_.height; On 2017/02/09 at 22:47:32, ikilpatrick wrote: > I ...
3 years, 10 months ago (2017-02-09 22:52:30 UTC) #19
atotic
On 2017/02/09 at 22:47:33, ikilpatrick wrote: > Also can you add tests? What kind of ...
3 years, 10 months ago (2017-02-09 23:10:38 UTC) #20
atotic
Replies so far. Unresolved: Ian: - comment on whether horizontal blocks should get definite inline ...
3 years, 10 months ago (2017-02-09 23:17:50 UTC) #21
atotic
Another fix, after hangout converasion with ikilpatrick/eae - Only compute ICB height, no current use ...
3 years, 10 months ago (2017-02-10 00:11:34 UTC) #22
ikilpatrick
On 2017/02/10 00:11:34, atotic wrote: > Another fix, after hangout converasion with ikilpatrick/eae > > ...
3 years, 10 months ago (2017-02-10 02:02:17 UTC) #23
ikilpatrick
On 2017/02/10 02:02:17, ikilpatrick wrote: > On 2017/02/10 00:11:34, atotic wrote: > > Another fix, ...
3 years, 10 months ago (2017-02-10 02:03:36 UTC) #24
kojii
https://codereview.chromium.org/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc (right): https://codereview.chromium.org/2681783004/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc#newcode153 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc:153: initial_containing_block_size_.height; Sorry for late reply; IIUC what Ian meant ...
3 years, 10 months ago (2017-02-10 07:06:52 UTC) #25
atotic
On 2017/02/10 at 02:03:36, ikilpatrick wrote: > On 2017/02/10 02:02:17, ikilpatrick wrote: > > On ...
3 years, 10 months ago (2017-02-10 17:07:45 UTC) #26
atotic
ptal eae, I'll need lgtm for BUILD.gn Changes: - Builder: horizontal blocks inside vertical now ...
3 years, 10 months ago (2017-02-10 20:08:54 UTC) #28
ikilpatrick
lgtm thanks for your patience. https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc (right): https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc#newcode13 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc:13: class NGConstraintSpaceBuilderTest : public ...
3 years, 10 months ago (2017-02-10 22:54:14 UTC) #29
cbiesinger
https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc (right): https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc#newcode148 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc:148: available_size.inline_size = initial_containing_block_size_.width; I am still skeptical how this ...
3 years, 10 months ago (2017-02-10 23:26:06 UTC) #30
atotic
https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc (right): https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc#newcode13 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc:13: class NGConstraintSpaceBuilderTest : public RenderingTest { On 2017/02/10 at ...
3 years, 10 months ago (2017-02-10 23:29:00 UTC) #31
atotic
@eae can I get the LGTM for BUILD.GN
3 years, 10 months ago (2017-02-10 23:29:42 UTC) #35
cbiesinger
On 2017/02/10 23:29:42, atotic wrote: > @eae can I get the LGTM for BUILD.GN Shouldn't ...
3 years, 10 months ago (2017-02-10 23:33:56 UTC) #36
ikilpatrick
https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc (right): https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc#newcode148 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc:148: available_size.inline_size = initial_containing_block_size_.width; On 2017/02/10 23:26:05, cbiesinger wrote: > ...
3 years, 10 months ago (2017-02-10 23:37:21 UTC) #37
atotic
> Shouldn't my lgtm be good enough for that? didn't know you have those too.
3 years, 10 months ago (2017-02-10 23:39:10 UTC) #38
atotic
https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc (right): https://codereview.chromium.org/2681783004/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc#newcode148 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc:148: available_size.inline_size = initial_containing_block_size_.width; html { writing-mode: vertical-rl; } </style> ...
3 years, 10 months ago (2017-02-10 23:39:22 UTC) #39
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/2681783004/120001
3 years, 10 months ago (2017-02-10 23:39:58 UTC) #41
kojii
On 2017/02/10 at 23:37:21, ikilpatrick wrote: > > I think we have a bug in ...
3 years, 10 months ago (2017-02-11 00:16:08 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/214a55c8dbf669d7d16e8693ffd93ae0d9d10182
3 years, 10 months ago (2017-02-11 01:30:53 UTC) #45
eae
3 years, 10 months ago (2017-02-12 21:11:21 UTC) #46
Message was sent while issue was closed.
\o/

Powered by Google App Engine
This is Rietveld 408576698