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

Issue 2709103010: Flip vertical-rl coordinates for Legacy compat (Closed)

Created:
3 years, 10 months ago by atotic
Modified:
3 years, 10 months ago
Reviewers:
cbiesinger, kojii, eae
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

Flip vertical-rl coordinates for Legacy compat Bug: vertical-rl block layout looked identical to vertical-lr Cause: LegacyLayout expects vertical-rl coordinates to be flipped @#$@$@! Fix: Flip coordinates of vertical-rl blocks before setting X/Y Personally, I'd love to eliminate legacy flipping, but it sounds like it'll be a boatload of work. For context, here is what I've learned from kojii: >>>>> In legacy, we layout as if it's vertical-lr, then flip X. Ojan wanted to eliminate this flipping, because it's a source of bugs for paint and make code harder to read, since we need to apply different logic depending on whether the code runs before the flip and after the flip. Walter tried to do this before but it was too much work. From you question, I guess we haven't come up with the strategy how to handle this? I can only think two options: Flip as the legacy does. Allow block progression to grow in negative direction. We still don't know the right position before layout, so we need to shift after the layout. #2 is cleaner and can eliminate flipping, but we need to allow block progression to grow in negative direction. I haven't really given enough thoughts which is better. <<<<< BUG=635619 Review-Url: https://codereview.chromium.org/2709103010 Cr-Commit-Position: refs/heads/master@{#453009} Committed: https://chromium.googlesource.com/chromium/src/+/1e2c173006a9d81fd8e12b325354e7d002ff3d5c

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_node.cc View 1 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 12 (6 generated)
atotic
ptal
3 years, 10 months ago (2017-02-24 21:22:07 UTC) #3
cbiesinger
lgtm ah, flipped blocks :( https://codereview.chromium.org/2709103010/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/2709103010/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc#newcode39 third_party/WebKit/Source/core/layout/ng/ng_block_node.cc:39: LayoutUnit container_width = containing_block->logicalHeight(); ...
3 years, 10 months ago (2017-02-24 21:48:10 UTC) #4
atotic
https://codereview.chromium.org/2709103010/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/2709103010/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc#newcode39 third_party/WebKit/Source/core/layout/ng/ng_block_node.cc:39: LayoutUnit container_width = containing_block->logicalHeight(); On 2017/02/24 at 21:48:10, cbiesinger ...
3 years, 10 months ago (2017-02-24 22:41:15 UTC) #7
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/2709103010/20001
3 years, 10 months ago (2017-02-24 22:41:49 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/1e2c173006a9d81fd8e12b325354e7d002ff3d5c
3 years, 10 months ago (2017-02-25 00:13:56 UTC) #11
eae
3 years, 10 months ago (2017-02-26 00:01:26 UTC) #12
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698