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

Issue 2691093004: Fix orthogonal mode legacy mismatch (Closed)

Created:
3 years, 10 months ago by atotic
Modified:
3 years, 10 months ago
Reviewers:
cbiesinger
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, cbiesinger, chromium-reviews, dgrogan+ng_chromium.org, 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

Fix orthogonal mode legacy mismatch Orthogonal styles currently assert inside legacy layout, because width is -1. Ex: <div style="writing-mode:vertical-rl; border:1px solid red;"> <p style="writing-mode:horizontal-tb; border:1px solid blue;">Hello, world.</p> </div> These two routines did not handle orthogonal modes properly. NGConstraintSpace::CreateFromLayoutObject NGBlockNode::RunOldLayout I am not sure if this fix is correct, it is my best guess. With the fix, assert is avoided, but <p> is too tall. The constraint space used for layout looks correct, bug might be something else. Meta question: Should we bother with legacy orthogonal modes at all? I've stumbled upon several other orthogonal mode bugs. BUG=635619 [ng_orthogonal_legacy] Review-Url: https://codereview.chromium.org/2691093004 Cr-Commit-Position: refs/heads/master@{#450878} Committed: https://chromium.googlesource.com/chromium/src/+/283cef0d240cf6a118f605d396eee0fbee0278b7

Patch Set 1 #

Total comments: 16

Patch Set 2 : CR fixes #

Total comments: 2

Patch Set 3 : CR fixes, removed odd IsParallelWritingMode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -15 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.cc View 1 2 1 chunk +21 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 2 chunks +20 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_writing_mode.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_writing_mode.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
atotic
3 years, 10 months ago (2017-02-14 00:57:07 UTC) #4
cbiesinger
https://codereview.chromium.org/2691093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc File third_party/WebKit/Source/core/layout/ng/ng_block_node.cc (right): https://codereview.chromium.org/2691093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc#newcode292 third_party/WebKit/Source/core/layout/ng/ng_block_node.cc:292: // OverrideContainingBlock should be in containing block writing mode. ...
3 years, 10 months ago (2017-02-14 16:50:27 UTC) #5
atotic
ptal. Once the IsParallelWritingMode format is fixed, I'll convert other existing code. https://codereview.chromium.org/2691093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc File third_party/WebKit/Source/core/layout/ng/ng_block_node.cc ...
3 years, 10 months ago (2017-02-14 19:11:28 UTC) #6
atotic
ping
3 years, 10 months ago (2017-02-15 17:35:15 UTC) #7
cbiesinger
lgtm https://codereview.chromium.org/2691093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc File third_party/WebKit/Source/core/layout/ng/ng_block_node.cc (right): https://codereview.chromium.org/2691093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc#newcode292 third_party/WebKit/Source/core/layout/ng/ng_block_node.cc:292: // OverrideContainingBlock should be in containing block writing ...
3 years, 10 months ago (2017-02-15 17:52:24 UTC) #8
cbiesinger
https://codereview.chromium.org/2691093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc File third_party/WebKit/Source/core/layout/ng/ng_block_node.cc (right): https://codereview.chromium.org/2691093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc#newcode292 third_party/WebKit/Source/core/layout/ng/ng_block_node.cc:292: // OverrideContainingBlock should be in containing block writing mode. ...
3 years, 10 months ago (2017-02-15 19:50:59 UTC) #9
atotic
thanks for the review, and sorry about IsPlatformWritingMode torture. I've removed the IsPlatformWritingMode(LayoutObject, Style), and ...
3 years, 10 months ago (2017-02-15 21:07:36 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/2691093004/40001
3 years, 10 months ago (2017-02-15 21:08:48 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/322668)
3 years, 10 months ago (2017-02-15 22:23:07 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/2691093004/40001
3 years, 10 months ago (2017-02-16 05:26:21 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 06:35:51 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/283cef0d240cf6a118f605d396ee...

Powered by Google App Engine
This is Rietveld 408576698