| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |