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

Unified Diff: third_party/WebKit/Source/web/WebInputEventConversion.cpp

Issue 2814473003: Fix frame coordinate translation issue with scroll views. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebInputEventConversion.cpp
diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
index 7b9defc7bf238a88ca6681c5367b07a8f38c8403..b423634cd7b53e865115f971b43b1d0dbe410c72 100644
--- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
@@ -196,6 +196,13 @@ WebMouseEventBuilder::WebMouseEventBuilder(const FrameView* plugin_parent,
*static_cast<WebMouseEvent*>(this) =
event.NativeEvent()->FlattenTransform();
WebFloatPoint absolute_root_frame_location = PositionInRootFrame();
+
+ // Translate the absolute position to content coordinates.
mustaq 2017/04/11 15:20:09 This particular change is not related to the bug b
+ if (plugin_parent) {
+ absolute_root_frame_location =
+ plugin_parent->RootFrameToContents(absolute_root_frame_location);
+ }
+
IntPoint local_point = RoundedIntPoint(layout_item.AbsoluteToLocal(
absolute_root_frame_location, kUseTransforms));
SetPositionInWidget(local_point.X(), local_point.Y());
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698