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

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

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/Event.cpp
diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
index 93f7dd9bf1af070abfe4fc223991490c66d10ab7..fc4e6a547b7e3e9c0a8dc9b0b4ae7c88ea0220ff 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -289,12 +289,12 @@ HeapVector<Member<EventTarget>> Event::pathInternal(ScriptState* scriptState, Ev
HostsUsingFeatures::countHostOrIsolatedWorldHumanReadableName(scriptState, *m_target, HostsUsingFeatures::Feature::EventPath);
if (!m_currentTarget) {
- ASSERT(m_eventPhase == Event::NONE);
+ DCHECK_EQ(Event::kNone, m_eventPhase);
if (!m_eventPath) {
// Before dispatching the event
return HeapVector<Member<EventTarget>>();
}
- ASSERT(!m_eventPath->isEmpty());
+ DCHECK(!m_eventPath->isEmpty());
// After dispatching the event
if (mode == EmptyAfterDispatch)
return HeapVector<Member<EventTarget>>();
@@ -302,7 +302,7 @@ HeapVector<Member<EventTarget>> Event::pathInternal(ScriptState* scriptState, Ev
}
if (Node* node = m_currentTarget->toNode()) {
- ASSERT(m_eventPath);
+ DCHECK(m_eventPath);
size_t eventPathSize = m_eventPath->size();
for (size_t i = 0; i < eventPathSize; ++i) {
if (node == (*m_eventPath)[i].node()) {
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698