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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBEventDispatcher.cpp

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Fix comments 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/modules/indexeddb/IDBEventDispatcher.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBEventDispatcher.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBEventDispatcher.cpp
index 1812dc82bd1fdce1d72e7f8f728a72089eab6ac1..d1c3c6d46acba48087f7a67f5d27b1aa8fca5f3a 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBEventDispatcher.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBEventDispatcher.cpp
@@ -33,7 +33,7 @@
namespace blink {
-bool IDBEventDispatcher::dispatch(Event* event, WillBeHeapVector<RefPtrWillBeMember<EventTarget>>& eventTargets)
+DispatchEventResult IDBEventDispatcher::dispatch(Event* event, WillBeHeapVector<RefPtrWillBeMember<EventTarget>>& eventTargets)
{
size_t size = eventTargets.size();
ASSERT(size);
@@ -63,7 +63,7 @@ bool IDBEventDispatcher::dispatch(Event* event, WillBeHeapVector<RefPtrWillBeMem
doneDispatching:
event->setCurrentTarget(nullptr);
event->setEventPhase(Event::NONE);
- return !event->defaultPrevented();
+ return event->eventResult();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698