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

Unified Diff: third_party/WebKit/Source/core/events/CompositionEvent.cpp

Issue 2675793005: Track constant InputDeviceCapabilities objects per-window. (Closed)
Patch Set: test tidying 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/CompositionEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/CompositionEvent.cpp b/third_party/WebKit/Source/core/events/CompositionEvent.cpp
index 3cf803375a01c0c7fb9524d1f0a36cfc6a13e878..60a041a57fc2b92bf2a1632e6d7ebe983ca3bb2e 100644
--- a/third_party/WebKit/Source/core/events/CompositionEvent.cpp
+++ b/third_party/WebKit/Source/core/events/CompositionEvent.cpp
@@ -26,6 +26,8 @@
#include "core/events/CompositionEvent.h"
+#include "core/input/InputDeviceCapabilities.h"
+
namespace blink {
CompositionEvent::CompositionEvent() {}
@@ -33,15 +35,15 @@ CompositionEvent::CompositionEvent() {}
CompositionEvent::CompositionEvent(const AtomicString& type,
AbstractView* view,
const String& data)
- : UIEvent(
- type,
- true,
- true,
- ComposedMode::Composed,
- TimeTicks::Now(),
- view,
- 0,
- InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()),
+ : UIEvent(type,
+ true,
+ true,
+ ComposedMode::Composed,
+ TimeTicks::Now(),
+ view,
+ 0,
+ view ? view->getInputDeviceCapabilities()->firesTouchEvents(false)
+ : nullptr),
m_data(data) {}
CompositionEvent::CompositionEvent(const AtomicString& type,

Powered by Google App Engine
This is Rietveld 408576698