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/EventListenerMap.cpp

Issue 2137483003: Add UMA metrics for root scroller intervention to track forcing passive breakage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change layout test to a unit test Created 4 years, 5 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/EventListenerMap.cpp
diff --git a/third_party/WebKit/Source/core/events/EventListenerMap.cpp b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
index 40692faa096a9eac07392d2a886d0e24ce89ec2c..ef3d5b303e7758f5fd955f9a1587a890bfedb65a 100644
--- a/third_party/WebKit/Source/core/events/EventListenerMap.cpp
+++ b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
@@ -106,7 +106,7 @@ Vector<AtomicString> EventListenerMap::eventTypes() const
return types;
}
-static bool addListenerToVector(EventListenerVector* vector, EventListener* listener, const AddEventListenerOptions& options, RegisteredEventListener* registeredListener)
+static bool addListenerToVector(EventListenerVector* vector, EventListener* listener, const AddEventListenerOptionsResolved& options, RegisteredEventListener* registeredListener)
{
*registeredListener = RegisteredEventListener(listener, options);
@@ -117,7 +117,7 @@ static bool addListenerToVector(EventListenerVector* vector, EventListener* list
return true;
}
-bool EventListenerMap::add(const AtomicString& eventType, EventListener* listener, const AddEventListenerOptions& options, RegisteredEventListener* registeredListener)
+bool EventListenerMap::add(const AtomicString& eventType, EventListener* listener, const AddEventListenerOptionsResolved& options, RegisteredEventListener* registeredListener)
{
assertNoActiveIterators();
@@ -185,7 +185,7 @@ static void copyListenersNotCreatedFromMarkupToTarget(const AtomicString& eventT
// Event listeners created from markup have already been transfered to the shadow tree during cloning.
if (eventListener.listener()->wasCreatedFromMarkup())
continue;
- AddEventListenerOptions options = eventListener.options();
+ AddEventListenerOptionsResolved options = eventListener.options();
target->addEventListener(eventType, eventListener.listener(), options);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/events/EventListenerMap.h ('k') | third_party/WebKit/Source/core/events/EventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698