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

Issue 2651793013: Fix incorrectly calculated size/position information for writing-modes (Closed)

Created:
3 years, 10 months ago by Gleb Lanbin
Modified:
3 years, 10 months ago
Reviewers:
cbiesinger, ikilpatrick
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix incorrectly calculated size/position information for writing-modes List of changes: - Calculate margins before we switch writing modes for a child CS - Collapse MarginStrut and update parent's BFC if we lay out the block that establishes a new formatting context. - Rewrite NGBlockLayoutAlgorithmTest::CollapsingMarginsCase5 that verifies that we correctly collapses margins in different writing modes - Set ShrinkToFit to child's CS if it's orthogonal to its parent. BUG=635619 Review-Url: https://codereview.chromium.org/2651793013 Cr-Commit-Position: refs/heads/master@{#448626} Committed: https://chromium.googlesource.com/chromium/src/+/4db6b79aab37bf3c687e067126241ab615d5c645

Patch Set 1 #

Patch Set 2 : Set shrink_to_fit to orthogonal child's CS #

Patch Set 3 : add ShouldShrinkToFit() #

Total comments: 2

Patch Set 4 : Do set ShrinkToFit to child's space if it's orthogonal to its parent #

Total comments: 1

Patch Set 5 : unified offset #

Patch Set 6 : git rebase-update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -71 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 3 chunks +25 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 3 4 5 2 chunks +74 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.h View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc View 1 2 3 4 4 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 39 (31 generated)
Gleb Lanbin
3 years, 10 months ago (2017-01-28 00:54:13 UTC) #3
Gleb Lanbin
3 years, 10 months ago (2017-01-30 20:57:38 UTC) #5
cbiesinger
Can you update the description? This part seems wrong now: " max_inline_size if writing_mode is ...
3 years, 10 months ago (2017-01-30 22:05:40 UTC) #6
Gleb Lanbin
https://codereview.chromium.org/2651793013/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/2651793013/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode40 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:40: child_style.isFloating() || is_in_parallel_flow; On 2017/01/30 22:05:40, cbiesinger wrote: > ...
3 years, 10 months ago (2017-01-30 22:11:12 UTC) #8
cbiesinger
lgtm but please have Ian review the margin collapsing parts.
3 years, 10 months ago (2017-01-30 22:13:38 UTC) #9
ikilpatrick
lgtm https://codereview.chromium.org/2651793013/diff/80001/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/2651793013/diff/80001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode708 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:708: curr_child_margins_ = CalculateMargins(*space_builder_->ToConstraintSpace(), This looks wrong as the ...
3 years, 10 months ago (2017-01-31 21:34:43 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/2651793013/180001
3 years, 10 months ago (2017-02-07 15:23:25 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 15:28:10 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/4db6b79aab37bf3c687e06712624...

Powered by Google App Engine
This is Rietveld 408576698