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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Rebase Created 4 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/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index fc4425ffdfbd3e0b92986e61c7e5d703af69c9c9..5c5eb44620be347c88b4c39119a993f2a3735aea 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -176,7 +176,7 @@ HTMLInputElement::~HTMLInputElement()
if (type() == InputTypeNames::radio)
document().formController().radioButtonGroupScope().removeButton(this);
if (m_hasTouchEventHandler && document().frameHost())
- document().frameHost()->eventHandlerRegistry().didRemoveEventHandler(*this, EventHandlerRegistry::TouchEvent);
+ document().frameHost()->eventHandlerRegistry().didRemoveEventHandler(*this, EventHandlerRegistry::TouchEventBlocking);
Rick Byers 2016/02/04 22:18:57 nit: Add a TODO saying to make this passive, refer
#endif
}
@@ -420,9 +420,9 @@ void HTMLInputElement::updateTouchEventHandlerRegistry()
if (document().frameHost() && document().lifecycle().state() < DocumentLifecycle::Stopping) {
EventHandlerRegistry& registry = document().frameHost()->eventHandlerRegistry();
if (hasTouchEventHandler)
- registry.didAddEventHandler(*this, EventHandlerRegistry::TouchEvent);
+ registry.didAddEventHandler(*this, EventHandlerRegistry::TouchEventBlocking);
else
- registry.didRemoveEventHandler(*this, EventHandlerRegistry::TouchEvent);
+ registry.didRemoveEventHandler(*this, EventHandlerRegistry::TouchEventBlocking);
m_hasTouchEventHandler = hasTouchEventHandler;
}
}

Powered by Google App Engine
This is Rietveld 408576698