| Index: third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| index a24aeec70cf486dd8c37613a1b336590cd49ffb8..d0350d104b8ace3f28e0fe1568d5e9421f1e5fe5 100644
|
| --- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| +++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| @@ -232,8 +232,7 @@ WebInputEventResult MouseEventManager::setMousePositionAndDispatchMouseEvent(
|
| WebInputEventResult MouseEventManager::dispatchMouseClickIfNeeded(
|
| Node* target,
|
| const WebMouseEvent& mouseEvent,
|
| - const String& canvasRegionId,
|
| - Node* targetWithoutCapture) {
|
| + const String& canvasRegionId) {
|
| // We only prevent click event when the click may cause contextmenu to popup.
|
| // However, we always send auxclick.
|
| bool contextMenuEvent =
|
| @@ -267,23 +266,6 @@ WebInputEventResult MouseEventManager::dispatchMouseClickIfNeeded(
|
| clickTargetNode = target->commonAncestor(
|
| *m_clickNode, EventHandlingUtil::parentForClickEvent);
|
| }
|
| -
|
| - // This block is only for the purpose of gathering the metric and can be
|
| - // removed as soon as we don't need the metric.
|
| - if (targetWithoutCapture != target) {
|
| - Node* alternativeClickTargetNode = nullptr;
|
| - if (m_clickNode == targetWithoutCapture) {
|
| - alternativeClickTargetNode = m_clickNode;
|
| - } else if (m_clickNode->document() == targetWithoutCapture->document()) {
|
| - alternativeClickTargetNode = targetWithoutCapture->commonAncestor(
|
| - *m_clickNode, EventHandlingUtil::parentForClickEvent);
|
| - }
|
| - if (alternativeClickTargetNode != clickTargetNode) {
|
| - UseCounter::count(m_frame,
|
| - UseCounter::PointerEventClickRetargetCausedByCapture);
|
| - }
|
| - }
|
| -
|
| if (clickTargetNode) {
|
| clickEventResult = dispatchMouseEvent(
|
| clickTargetNode,
|
|
|