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

Issue 2698663003: [css-grid] Improve intrinsic size computation with orthogonal flows (Closed)

Created:
3 years, 10 months ago by svillar
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, Manuel Rego, leviw+renderwatch, jchaffraix+rendering, blink-reviews, eae+blinkwatch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Improve intrinsic size computation with orthogonal flows FrameView performs an initial pre-layout of orthogonal items so that preferred logical widths could be computed even with orthogonal flows. The problem is that pre-layout is done based on the render tree hierarchy something that is not valid for grids. The reason why is not valid is because the containers of grid items are the grid areas not the grid container. That was causing incorrect intrinsic size computations of grid containers with orthogonal items. From now on we skip that pre-layout for orthogonal items and do it on demand in the track sizing algorithm code once the grid areas (the override containing blocks) are set. This change gives us much better results in several cases apart from fixing some others that were plainly wrong (like orthogonal items with percentage sizes). BUG=685609 Review-Url: https://codereview.chromium.org/2698663003 Cr-Commit-Position: refs/heads/master@{#460774} Committed: https://chromium.googlesource.com/chromium/src/+/fe510c12d470f2227b0f7c63b94633618a37c7ab

Patch Set 1 #

Total comments: 13

Patch Set 2 : Fix for mac #

Patch Set 3 : Patch for landing #

Messages

Total messages: 30 (10 generated)
svillar
Adding reviewers
3 years, 10 months ago (2017-02-15 18:35:14 UTC) #2
jfernandez
I think it improves the situation, but we need to analyze more carefully some cases. ...
3 years, 10 months ago (2017-02-15 22:49:58 UTC) #3
jfernandez
I found another case this patch does not solve; see the last test case in ...
3 years, 10 months ago (2017-02-15 23:15:08 UTC) #4
svillar
Thanks for the review! https://codereview.chromium.org/2698663003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-orthogonal-flows.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-orthogonal-flows.html (right): https://codereview.chromium.org/2698663003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-orthogonal-flows.html#newcode52 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-orthogonal-flows.html:52: <div class="grid itemsStart contentStart min-content ...
3 years, 10 months ago (2017-02-16 09:16:35 UTC) #5
svillar
On 2017/02/15 23:15:08, jfernandez wrote: > I found another case this patch does not solve; ...
3 years, 10 months ago (2017-02-16 09:25:28 UTC) #6
svillar
On 2017/02/16 09:25:28, svillar wrote: > On 2017/02/15 23:15:08, jfernandez wrote: > > I found ...
3 years, 10 months ago (2017-02-16 09:25:56 UTC) #7
jfernandez
My main concerns are that with this patch we don't get yet what the user ...
3 years, 10 months ago (2017-02-16 11:00:17 UTC) #8
svillar
Adding some Opera guys to know their opinions. The grid specifics are not very important ...
3 years, 10 months ago (2017-02-16 12:08:38 UTC) #10
mstensho (USE GERRIT)
FrameView::layoutOrthogonalWritingModeRoots() is there to avoid doing layout as part of intrinsic size computation. That said, ...
3 years, 10 months ago (2017-02-22 14:07:14 UTC) #11
svillar
On 2017/02/22 14:07:14, mstensho wrote: > FrameView::layoutOrthogonalWritingModeRoots() is there to avoid doing layout as > ...
3 years, 10 months ago (2017-02-22 15:43:31 UTC) #12
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/2698663003/1
3 years, 10 months ago (2017-02-22 15:44:15 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/393279)
3 years, 10 months ago (2017-02-22 17:59:31 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/2698663003/1
3 years, 10 months ago (2017-02-23 09:05:30 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/394064)
3 years, 10 months ago (2017-02-23 11:09:02 UTC) #20
svillar
Mac can call computeIntrinsicLogicalWidths outside f the layout process meaning that we should not mark ...
3 years, 9 months ago (2017-02-27 15:02:43 UTC) #21
mstensho (USE GERRIT)
On 2017/02/27 15:02:43, svillar wrote: > Mac can call computeIntrinsicLogicalWidths outside f the layout process ...
3 years, 9 months ago (2017-03-17 09:15:44 UTC) #22
svillar
On 2017/03/17 09:15:44, mstensho wrote: > On 2017/02/27 15:02:43, svillar wrote: > > Mac can ...
3 years, 9 months ago (2017-03-17 16:03:14 UTC) #23
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/2698663003/40001
3 years, 8 months ago (2017-03-30 14:12:51 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/fe510c12d470f2227b0f7c63b94633618a37c7ab
3 years, 8 months ago (2017-03-30 15:46:58 UTC) #29
emircan
3 years, 8 months ago (2017-03-30 22:13:45 UTC) #30
Message was sent while issue was closed.
On 2017/03/30 15:46:58, commit-bot: I haz the power wrote:
> Committed patchset #3 (id:40001) as
>
https://chromium.googlesource.com/chromium/src/+/fe510c12d470f2227b0f7c63b946...

Can you take alook to see if this is related to the issues on Win chromium bots?
https://build.chromium.org/p/chromium.webrtc/builders/Win8%20Tester/builds/33395

Powered by Google App Engine
This is Rietveld 408576698