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

Unified Diff: third_party/WebKit/Source/core/events/KeyboardEvent.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/events/KeyboardEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
index e7581e89641e43fe8bd7ffc3d7428ece99f9be6b..3c8a20e74c9888b68ddf01cb5b4dc438419a065a 100644
--- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
+++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
@@ -97,9 +97,7 @@ KeyboardEvent::KeyboardEvent(const WebKeyboardEvent& key,
0,
static_cast<PlatformEvent::Modifiers>(key.modifiers()),
TimeTicks::FromSeconds(key.timeStampSeconds()),
- domWindow
- ? domWindow->getInputDeviceCapabilities()->firesTouchEvents(false)
- : nullptr),
+ InputDeviceCapabilities::None),
m_keyEvent(WTF::makeUnique<WebKeyboardEvent>(key)),
// TODO(crbug.com/482880): Fix this initialization to lazy initialization.
m_code(Platform::current()->domCodeStringFromEnum(key.domCode)),
« no previous file with comments | « third_party/WebKit/Source/core/events/GestureEvent.cpp ('k') | third_party/WebKit/Source/core/events/MouseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698