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

Issue 2444323003: CanUseNewLayout should work for more cases (Closed)

Created:
4 years, 1 month ago by atotic
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, 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

CanUseNewLayout should trigger nglayout in more cases than we handle today. CanUseNewLayout was returning false even if there were no inline children. Ian confirmed that if there were no inline children, we should use nglayout. The root cause is that LayoutBlockFlow.isInline flag is initialized to true in constructor. It gets reset in LayoutBlockFlow::makeChildrenNonInline. This code only gets called if at least one BlockFlow child is laid out. If all your children are absolute, this does not happen. This change also causes 6 more existing virtual/nglayout test failures that I have not investigated. BUG=635619 Committed: https://crrev.com/453444244e58b4e26fc7e5772e75f7ed8b05d985 Cr-Commit-Position: refs/heads/master@{#428150}

Patch Set 1 #

Patch Set 2 : Adjusted test expectations #

Total comments: 1

Patch Set 3 : Adjust TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -6 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 8 chunks +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box.cc View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 20 (6 generated)
atotic
4 years, 1 month ago (2016-10-26 05:19:13 UTC) #3
eae
OK, please check with cbiesinger before landing. LGTM
4 years, 1 month ago (2016-10-26 17:02:16 UTC) #5
Gleb Lanbin
On 2016/10/26 05:19:13, atotic2 wrote: what's your plan for "causes 6 more existing virtual/nglayout test ...
4 years, 1 month ago (2016-10-26 17:06:34 UTC) #6
cbiesinger
I think this is fine -- I believe we handle floats now, which is the ...
4 years, 1 month ago (2016-10-26 17:17:51 UTC) #7
atotic
On 2016/10/26 at 17:17:51, cbiesinger wrote: > I think this is fine -- I believe ...
4 years, 1 month ago (2016-10-26 17:47:26 UTC) #8
atotic
Just noticed we are also testing margin-collapse. This one fails too, plan to comment it ...
4 years, 1 month ago (2016-10-26 17:59:27 UTC) #9
cbiesinger
sgtm
4 years, 1 month ago (2016-10-26 19:21:05 UTC) #10
atotic
On 2016/10/26 at 17:59:27, atotic2 wrote: > Just noticed we are also testing margin-collapse. This ...
4 years, 1 month ago (2016-10-26 19:43:36 UTC) #11
cbiesinger
On 2016/10/26 19:43:36, atotic2 wrote: > #4 ng_length_utils.cc > virtual/layout_ng/fast/block/float/overhanging-float-crashes-when-sibling-becomes-formatting-context.html This one crashes due to ...
4 years, 1 month ago (2016-10-26 21:47:17 UTC) #12
Gleb Lanbin
https://codereview.chromium.org/2444323003/diff/20001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2444323003/diff/20001/third_party/WebKit/LayoutTests/TestExpectations#newcode208 third_party/WebKit/LayoutTests/TestExpectations:208: crbug.com/635619 virtual/layout_ng/fast/block/margin-collapse/positioned-element-margin-change.html [ Skip ] please update numbers at ...
4 years, 1 month ago (2016-10-26 23:15:57 UTC) #13
atotic
On 2016/10/26 at 23:15:57, glebl wrote: > https://codereview.chromium.org/2444323003/diff/20001/third_party/WebKit/LayoutTests/TestExpectations > File third_party/WebKit/LayoutTests/TestExpectations (right): > > https://codereview.chromium.org/2444323003/diff/20001/third_party/WebKit/LayoutTests/TestExpectations#newcode208 ...
4 years, 1 month ago (2016-10-27 20:09:39 UTC) #14
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/2444323003/40001
4 years, 1 month ago (2016-10-27 20:10:14 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-27 22:05:20 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 22:08:10 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/453444244e58b4e26fc7e5772e75f7ed8b05d985
Cr-Commit-Position: refs/heads/master@{#428150}

Powered by Google App Engine
This is Rietveld 408576698