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

Issue 2417113002: [LayoutNG] Fix orthogonal writing mode child margin strut from being used in collapsing margins cal… (Closed)

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

Description

[LayoutNG] Fix orthogonal writing mode child margin strut from being used in collapsing margins calculation. Also changes where the margin strut is stored, which may be a bad idea? BUG=635619 Committed: https://crrev.com/0f6bd94a8898f85dbc05152065c55a5fffcdcccb Cr-Commit-Position: refs/heads/master@{#426106}

Patch Set 1 #

Patch Set 2 : spelling. #

Total comments: 3

Patch Set 3 : [LayoutNG] Fix orthoganal writing mode child margin strut from being used in collapsing margins cal… #

Patch Set 4 : [LayoutNG] Fix orthoganal writing mode child margin strut from being used in collapsing margins cal… #

Patch Set 5 : . #

Patch Set 6 : fixed! #

Total comments: 3

Patch Set 7 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -47 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 6 2 chunks +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 3 chunks +65 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box.cc View 1 2 3 4 5 6 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 2 3 4 5 3 chunks +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 2 3 4 5 9 chunks +19 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment.cc View 1 2 3 1 chunk +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_base.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_fragment_base.h View 1 chunk +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (21 generated)
ikilpatrick
the margin strut move changes the bit packing in a bad why, but unsure.
4 years, 2 months ago (2016-10-13 23:41:24 UTC) #2
Gleb Lanbin
lgtm https://codereview.chromium.org/2417113002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc File third_party/WebKit/Source/core/layout/ng/ng_fragment.cc (right): https://codereview.chromium.org/2417113002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc#newcode12 third_party/WebKit/Source/core/layout/ng/ng_fragment.cc:12: return writing_mode_ == it's better to use IF ...
4 years, 2 months ago (2016-10-13 23:59:51 UTC) #3
Gleb Lanbin
lgtm
4 years, 2 months ago (2016-10-13 23:59:53 UTC) #4
ikilpatrick
this fix is actually wrong, b/c IsNewFormattingContext isn't getting called, I'm going to rework this ...
4 years, 2 months ago (2016-10-14 16:13:03 UTC) #5
eae
On 2016/10/14 16:13:03, ikilpatrick wrote: > this fix is actually wrong, b/c IsNewFormattingContext isn't getting ...
4 years, 2 months ago (2016-10-14 19:05:24 UTC) #7
ikilpatrick
PTAL :) There is an open question as to if this flag should be on ...
4 years, 2 months ago (2016-10-17 17:24:54 UTC) #18
eae
Thanks, I'll take a look right after our meeting.
4 years, 2 months ago (2016-10-17 17:26:46 UTC) #19
eae
LGTM https://codereview.chromium.org/2417113002/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc (right): https://codereview.chromium.org/2417113002/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode412 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:412: TEST_F(NGBlockLayoutAlgorithmTest, CollapsingMarginsCase6) { Great test, thanks for adding ...
4 years, 2 months ago (2016-10-17 18:03:04 UTC) #20
Gleb Lanbin
lgtm lgtm, feel free to ignore a minor style comment. https://codereview.chromium.org/2417113002/diff/100001/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/2417113002/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode27 ...
4 years, 2 months ago (2016-10-18 22:54:10 UTC) #24
Gleb Lanbin
lgtm lgtm feel free to ignore a minor style comment.
4 years, 2 months ago (2016-10-18 22:54:11 UTC) #26
ikilpatrick
https://codereview.chromium.org/2417113002/diff/100001/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/2417113002/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode27 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:27: // Returns true if a in-flow block-level child creates ...
4 years, 2 months ago (2016-10-18 22:59:28 UTC) #28
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/2417113002/120001
4 years, 2 months ago (2016-10-18 23:00:43 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-19 01:36:32 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:05:26 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0f6bd94a8898f85dbc05152065c55a5fffcdcccb
Cr-Commit-Position: refs/heads/master@{#426106}

Powered by Google App Engine
This is Rietveld 408576698