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

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEvent.cpp

Issue 2270293002: Replace ASSERT*() with DCHECK*() in core/events/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isUnreachableNode -> checkReachableNode Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/events/PointerEvent.h" 5 #include "core/events/PointerEvent.h"
6 6
7 #include "core/dom/Element.h" 7 #include "core/dom/Element.h"
8 #include "core/events/EventDispatcher.h" 8 #include "core/events/EventDispatcher.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 DispatchEventResult PointerEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const 75 DispatchEventResult PointerEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
76 { 76 {
77 if (isDisabledFormControl(&dispatcher.node())) 77 if (isDisabledFormControl(&dispatcher.node()))
78 return DispatchEventResult::CanceledBeforeDispatch; 78 return DispatchEventResult::CanceledBeforeDispatch;
79 79
80 if (event().type().isEmpty()) 80 if (event().type().isEmpty())
81 return DispatchEventResult::NotCanceled; // Shouldn't happen. 81 return DispatchEventResult::NotCanceled; // Shouldn't happen.
82 82
83 ASSERT(!event().target() || event().target() != event().relatedTarget()); 83 DCHECK(!event().target() || event().target() != event().relatedTarget());
84 84
85 event().eventPath().adjustForRelatedTarget(dispatcher.node(), event().relate dTarget()); 85 event().eventPath().adjustForRelatedTarget(dispatcher.node(), event().relate dTarget());
86 86
87 return dispatcher.dispatch(); 87 return dispatcher.dispatch();
88 } 88 }
89 89
90 } // namespace blink 90 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/NodeEventContext.cpp ('k') | third_party/WebKit/Source/core/events/PopStateEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698