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

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

Issue 2372293002: Removed navigator.pointerEnabled API. (Closed)
Patch Set: Reverted the xml changes. 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 side-by-side diff with in-line comments
Download patch
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 f273e0e7d320871c97c0fbf869f61620d8cc9241..4d2932f45e1b2b5055b6547585807e6ddc169578 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -597,21 +597,10 @@ bool EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
if (event->isPointerEvent() && static_cast<PointerEvent*>(event)->pointerType() == "touch")
UseCounter::count(executingWindow->document(), UseCounter::PointerDownFiredForTouch);
}
- } else if (checkTypeThenUseCount(event, EventTypeNames::pointerenter, UseCounter::PointerEnterLeaveFired)
- || checkTypeThenUseCount(event, EventTypeNames::pointerleave, UseCounter::PointerEnterLeaveFired)
- || checkTypeThenUseCount(event, EventTypeNames::pointerover, UseCounter::PointerOverOutFired)
- || checkTypeThenUseCount(event, EventTypeNames::pointerout, UseCounter::PointerOverOutFired)) {
- LocalDOMWindow* executingWindow = this->executingWindow();
- Node* node = toNode();
- if (executingWindow && node && node->getNodeType() == Node::kElementNode && event->isPointerEvent()) {
- const Element* element = static_cast<Element*>(node);
- const PointerEvent* pointerEvent = static_cast<PointerEvent*>(event);
- const UseCounter::Feature feature = (event->type() == EventTypeNames::pointerenter || event->type() == EventTypeNames::pointerleave)
- ? UseCounter::PointerEnterLeaveFiredWhileCaptured
- : UseCounter::PointerOverOutFiredWhileCaptured;
- if (element->hasPointerCapture(pointerEvent->pointerId()) && element->hasProcessedPointerCapture(pointerEvent->pointerId()))
- UseCounter::count(executingWindow->document(), feature);
- }
+ } else if (checkTypeThenUseCount(event, EventTypeNames::pointerenter, UseCounter::PointerEnterLeaveFired)) {
+ } else if (checkTypeThenUseCount(event, EventTypeNames::pointerleave, UseCounter::PointerEnterLeaveFired)) {
+ } else if (checkTypeThenUseCount(event, EventTypeNames::pointerover, UseCounter::PointerOverOutFired)) {
+ } else if (checkTypeThenUseCount(event, EventTypeNames::pointerout, UseCounter::PointerOverOutFired)) {
}
ExecutionContext* context = getExecutionContext();

Powered by Google App Engine
This is Rietveld 408576698