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

Issue 2141693002: Fix order of operations in LayoutView::mapAncestorToLocal (Closed)

Created:
4 years, 5 months ago by chrishtr
Modified:
4 years, 4 months ago
Reviewers:
Xianzhu
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix order of operations in LayoutView::mapAncestorToLocal mapAncestorToLocal should first recurse, then apply each of the offsets/transforms in the forward direction but inverse order. The forward direction will be transformed to backwards direction by the TransformState state bit indicating "unapply inverse direction". This was incorrectly fixed in https://codereview.chromium.org/1994203003. Also, remove code to handle transforms on the LayoutView. It's impossible to have such a transform from content. This code was added in: https://chromium.googlesource.com/chromium/src/+/ce75f4f9824faae4464420cf9c96a6cf0fb85c77 without comment as to why. BUG=613894 Committed: https://crrev.com/d74f43ae4a3e5cc9392c15728be21e3f2d14a1be Cr-Commit-Position: refs/heads/master@{#408434}

Patch Set 1 #

Patch Set 2 : none #

Patch Set 3 : none #

Patch Set 4 : none #

Total comments: 4

Patch Set 5 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -13 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 4 1 chunk +5 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
chrishtr
Please check my logic closely. I got it wrong last time. :(
4 years, 5 months ago (2016-07-14 17:29:11 UTC) #4
Xianzhu
Can you add a test case? https://codereview.chromium.org/2141693002/diff/60001/third_party/WebKit/Source/core/layout/LayoutView.cpp File third_party/WebKit/Source/core/layout/LayoutView.cpp (right): https://codereview.chromium.org/2141693002/diff/60001/third_party/WebKit/Source/core/layout/LayoutView.cpp#newcode382 third_party/WebKit/Source/core/layout/LayoutView.cpp:382: // A LayoutView ...
4 years, 5 months ago (2016-07-14 17:40:12 UTC) #5
chrishtr
Test added. This test fails without the change to LayoutView. https://codereview.chromium.org/2141693002/diff/60001/third_party/WebKit/Source/core/layout/LayoutView.cpp File third_party/WebKit/Source/core/layout/LayoutView.cpp (right): https://codereview.chromium.org/2141693002/diff/60001/third_party/WebKit/Source/core/layout/LayoutView.cpp#newcode382 ...
4 years, 4 months ago (2016-07-28 16:21:13 UTC) #6
Xianzhu
lgtm
4 years, 4 months ago (2016-07-28 16:29:12 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/2141693002/80001
4 years, 4 months ago (2016-07-28 16:29:45 UTC) #9
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/2141693002/80001
4 years, 4 months ago (2016-07-28 16:46:28 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-28 18:03:46 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 18:06:22 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d74f43ae4a3e5cc9392c15728be21e3f2d14a1be
Cr-Commit-Position: refs/heads/master@{#408434}

Powered by Google App Engine
This is Rietveld 408576698