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

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

Issue 2678683002: Delay instantiating InputDeviceCapabilities until accessed. (Closed)
Patch Set: rebased Created 3 years, 10 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/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 4736b6f40f03d686d1f7509a07dd3201de6c3eb0..b25e14234bf719b47de2301fcb4d8f9da188e10a 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -677,11 +677,7 @@ WebInputEventResult EventHandler::handleMousePressEvent(
selectionController().initializeSelectionState();
HitTestResult hitTestResult = EventHandlingUtil::hitTestResultInFrame(
m_frame, documentPoint, HitTestRequest::ReadOnly);
- InputDeviceCapabilities* sourceCapabilities =
- m_frame->document()
- ->domWindow()
- ->getInputDeviceCapabilities()
- ->firesTouchEvents(mouseEvent.fromTouch());
+ InputDeviceCapabilitiesValue sourceCapabilities(mouseEvent.fromTouch());
if (eventResult == WebInputEventResult::NotHandled) {
eventResult = m_mouseEventManager->handleMouseFocus(hitTestResult,
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/RadioInputType.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698