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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 1960233002: Fix mouse pointer event clientX/Y (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a typo Created 4 years, 7 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 | « third_party/WebKit/Source/core/input/PointerEventManager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 06edf601103548efdd3f47e870a52307257a69ac..4e948617bf2f6250081ac4692728f1e888585c61 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -169,13 +169,12 @@ void PointerEventManager::sendMouseAndPossiblyPointerNodeTransitionEvents(
Node* exitedNode,
Node* enteredNode,
const PlatformMouseEvent& mouseEvent,
- AbstractView* view,
bool isFrameBoundaryTransition)
{
// Pointer event type does not matter as it will be overridden in the sendNodeTransitionEvents
PointerEvent* pointerEvent =
m_pointerEventFactory.create(EventTypeNames::mouseout, mouseEvent,
- nullptr, view);
+ nullptr, m_frame->document()->domWindow());
// TODO(crbug/545647): This state should reset with pointercancel too.
// This function also gets called for compat mouse events of touch at this
@@ -476,12 +475,11 @@ WebInputEventResult PointerEventManager::sendMousePointerEvent(
Node* target, const AtomicString& mouseEventType,
int clickCount, const PlatformMouseEvent& mouseEvent,
Node* relatedTarget,
- AbstractView* view,
Node* lastNodeUnderMouse)
{
PointerEvent* pointerEvent =
m_pointerEventFactory.create(mouseEventType, mouseEvent,
- relatedTarget, view);
+ relatedTarget, m_frame->document()->domWindow());
// This is for when the mouse is released outside of the page.
if (pointerEvent->type() == EventTypeNames::pointermove
« no previous file with comments | « third_party/WebKit/Source/core/input/PointerEventManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698