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

Issue 2814473003: Fix frame coordinate translation issue with scroll views. (Closed)

Created:
3 years, 8 months ago by dtapuska
Modified:
3 years, 8 months ago
Reviewers:
bokan, mustaq
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix frame coordinate translation issue with scroll views. The absolute position was being used (which is in content coordinates) but we were passing the root frame coordinates in. Translate the root frame coordinates into content coordinates before applying the transform from the LayoutObject. This matches the implementation of RootFrameToLocalPoint methods. BUG=710165 Review-Url: https://codereview.chromium.org/2814473003 Cr-Commit-Position: refs/heads/master@{#464170} Committed: https://chromium.googlesource.com/chromium/src/+/b452deb2b1802b68bf9662308074e4b10904f709

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix frame coordinate translation issue with scroll views. #

Patch Set 3 : Add unittest #

Total comments: 10

Patch Set 4 : Add more zoom tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -15 lines) Patch
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.cpp View 1 2 3 3 chunks +21 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 2 3 3 chunks +268 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/plugin_scroll.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
dtapuska
Will write a test on Wednesday when I return
3 years, 8 months ago (2017-04-10 21:10:23 UTC) #2
mustaq
https://codereview.chromium.org/2814473003/diff/1/third_party/WebKit/Source/web/WebInputEventConversion.cpp File third_party/WebKit/Source/web/WebInputEventConversion.cpp (right): https://codereview.chromium.org/2814473003/diff/1/third_party/WebKit/Source/web/WebInputEventConversion.cpp#newcode200 third_party/WebKit/Source/web/WebInputEventConversion.cpp:200: // Translate the absolute position to content coordinates. This ...
3 years, 8 months ago (2017-04-11 15:20:09 UTC) #3
dtapuska
PTAL
3 years, 8 months ago (2017-04-12 15:14:21 UTC) #7
mustaq
LGTM % a nit. https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp File third_party/WebKit/Source/web/WebInputEventConversion.cpp (right): https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp#newcode198 third_party/WebKit/Source/web/WebInputEventConversion.cpp:198: WebFloatPoint absolute_root_frame_location = PositionInRootFrame(); Nit: ...
3 years, 8 months ago (2017-04-12 15:38:38 UTC) #8
bokan
lgtm https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp File third_party/WebKit/Source/web/WebInputEventConversion.cpp (right): https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp#newcode198 third_party/WebKit/Source/web/WebInputEventConversion.cpp:198: WebFloatPoint absolute_root_frame_location = PositionInRootFrame(); On 2017/04/12 15:38:38, mustaq ...
3 years, 8 months ago (2017-04-12 17:28:44 UTC) #11
mustaq
https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp File third_party/WebKit/Source/web/WebInputEventConversion.cpp (right): https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp#newcode198 third_party/WebKit/Source/web/WebInputEventConversion.cpp:198: WebFloatPoint absolute_root_frame_location = PositionInRootFrame(); On 2017/04/12 17:28:44, bokan wrote: ...
3 years, 8 months ago (2017-04-12 17:52:04 UTC) #12
dtapuska
https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp File third_party/WebKit/Source/web/WebInputEventConversion.cpp (right): https://codereview.chromium.org/2814473003/diff/40001/third_party/WebKit/Source/web/WebInputEventConversion.cpp#newcode198 third_party/WebKit/Source/web/WebInputEventConversion.cpp:198: WebFloatPoint absolute_root_frame_location = PositionInRootFrame(); On 2017/04/12 17:52:04, mustaq wrote: ...
3 years, 8 months ago (2017-04-12 19:02:56 UTC) #13
bokan
thanks, lgtm
3 years, 8 months ago (2017-04-12 19:35:53 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/2814473003/60001
3 years, 8 months ago (2017-04-12 20:55:43 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 22:14:27 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b452deb2b1802b68bf9662308074...

Powered by Google App Engine
This is Rietveld 408576698