diff options
author | Selim Gurun <sgurun@google.com> | 2013-11-13 18:11:38 -0800 |
---|---|---|
committer | Selim Gurun <sgurun@google.com> | 2013-11-13 18:19:15 -0800 |
commit | 29cbcb0f746cb081dea0e1d0ff911e3d67adf878 (patch) | |
tree | 32df8b7c93a9b69053af201848c2674feeed5e29 /Source/core/dom/GestureEvent.cpp | |
parent | 070b047c9a75d418df397df222b35beacf212a9c (diff) | |
download | WebKit-29cbcb0f746cb081dea0e1d0ff911e3d67adf878.tar.gz |
Fix badcast in event::isGestureEvent
Bug: 11676314
Cherry pick https://codereview.chromium.org/35153013.
Change-Id: I141d6fe56410e2c44631b17e537f52ab7a75d3d6
Diffstat (limited to 'Source/core/dom/GestureEvent.cpp')
-rw-r--r-- | Source/core/dom/GestureEvent.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/core/dom/GestureEvent.cpp b/Source/core/dom/GestureEvent.cpp index a4f5cf8f5..735036eaf 100644 --- a/Source/core/dom/GestureEvent.cpp +++ b/Source/core/dom/GestureEvent.cpp @@ -90,6 +90,11 @@ const AtomicString& GestureEvent::interfaceName() const return UIEvent::interfaceName(); } +bool GestureEvent::isGestureEvent() const +{ + return true; +} + GestureEvent::GestureEvent() : m_deltaX(0) , m_deltaY(0) @@ -110,7 +115,7 @@ GestureEventDispatchMediator::GestureEventDispatchMediator(PassRefPtr<GestureEve GestureEvent* GestureEventDispatchMediator::event() const { - return static_cast<GestureEvent*>(EventDispatchMediator::event()); + return toGestureEvent(EventDispatchMediator::event()); } bool GestureEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) const |