| Index: third_party/WebKit/Source/core/events/EventTarget.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| index b1aea0a395f91288cb80b5bbb6060bf1daf922a9..19d5091f15ebdd4558136670d22ba78525c43cb5 100644
|
| --- a/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| +++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| @@ -579,7 +579,7 @@ bool EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
|
| } else if (checkTypeThenUseCount(event, EventTypeNames::mousedown, UseCounter::MouseDownFired)) {
|
| } else if (checkTypeThenUseCount(event, EventTypeNames::pointerdown, UseCounter::PointerDownFired)) {
|
| if (LocalDOMWindow* executingWindow = this->executingWindow()) {
|
| - if (static_cast<PointerEvent*>(event)->pointerType() == "touch")
|
| + if (event->isPointerEvent() && static_cast<PointerEvent*>(event)->pointerType() == "touch")
|
| UseCounter::count(executingWindow->document(), UseCounter::PointerDownFiredForTouch);
|
| }
|
| }
|
|
|