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

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

Issue 2396693002: Convert drag event position to root frame. (Closed)
Patch Set: Convert drag event position to root frame. Created 4 years, 2 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
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 974b80fc9c7abfa1cb2fcd0567532abb0c6f08d5..3566e67871e76a0e9088a84da622e3e307fc179c 100644
--- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
@@ -743,4 +743,9 @@ WebGestureEventBuilder::WebGestureEventBuilder(const LayoutItem layoutItem, cons
}
}
+IntPoint convertDragEventPointToRootFrame(const Widget* widget, const IntPoint& intPoint)
+{
+ return widget->convertFromRootFrame(flooredIntPoint(convertHitPointToRootFrame(widget, intPoint)));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698