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

Issue 2899413002: [LayoutNG] Removes per-child state from NGBlockLayoutAlgorithm. (Closed)

Created:
3 years, 7 months ago by ikilpatrick
Modified:
3 years, 6 months ago
Reviewers:
cbiesinger, Gleb Lanbin
CC:
chromium-reviews, cbiesinger, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, glebl+reviews_chromium.org, dgrogan+ng_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/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Removes per-child state from NGBlockLayoutAlgorithm. Removes curr_bfc_offset_, curr_child_margins_, curr_margin_strut_ in favour of stack variables. This clears up the information flow between children, and makes it clear *which* margin strut, etc is being used for a particular child's positioning. (E.g. the OOFPositioned child's positioning was difficult to determine before). This introduces one regression which I'll investigate separately (static position is weird with abs-pos legacy children now) - so I've removed the LayoutNG CQ bot. BUG=635619 Review-Url: https://codereview.chromium.org/2899413002 Cr-Commit-Position: refs/heads/master@{#476354} Committed: https://chromium.googlesource.com/chromium/src/+/639c840bf93e2934fe6b3f564f90060313d5791a

Patch Set 1 #

Patch Set 2 : ... #

Patch Set 3 : try2 #

Patch Set 4 : try3 #

Total comments: 2

Patch Set 5 : new TestExpectations #

Patch Set 6 : address comments. #

Patch Set 7 : rebase+testexpectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -152 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 6 chunks +2 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 2 6 chunks +25 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 16 chunks +198 lines, -122 lines 0 comments Download

Messages

Total messages: 35 (30 generated)
ikilpatrick
I think this makes it a bunch clearer whats going on for certain things, I've ...
3 years, 7 months ago (2017-05-26 18:36:06 UTC) #14
Gleb Lanbin
lgtm https://codereview.chromium.org/2899413002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2899413002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode91 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:91: NGLogicalOffset mutable_offset = {space.BfcOffset().inline_offset, bfc_offset ?
3 years, 6 months ago (2017-05-31 04:56:14 UTC) #17
ikilpatrick
thanks for the review! https://codereview.chromium.org/2899413002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2899413002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode91 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:91: NGLogicalOffset mutable_offset = {space.BfcOffset().inline_offset, On ...
3 years, 6 months ago (2017-06-01 18:07:08 UTC) #27
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/2899413002/120001
3 years, 6 months ago (2017-06-01 18:08:41 UTC) #32
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 18:15:40 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/639c840bf93e2934fe6b3f564f90...

Powered by Google App Engine
This is Rietveld 408576698