| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * | 10 * |
| (...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2128 pointerEventInit.setPointerType("mouse"); | 2128 pointerEventInit.setPointerType("mouse"); |
| 2129 pointerEventInit.setIsPrimary(true); | 2129 pointerEventInit.setIsPrimary(true); |
| 2130 pointerEventInit.setButtons( | 2130 pointerEventInit.setButtons( |
| 2131 MouseEvent::webInputEventModifiersToButtons(mouseEvent.modifiers())); | 2131 MouseEvent::webInputEventModifiersToButtons(mouseEvent.modifiers())); |
| 2132 | 2132 |
| 2133 pointerEventInit.setBubbles(true); | 2133 pointerEventInit.setBubbles(true); |
| 2134 pointerEventInit.setCancelable(true); | 2134 pointerEventInit.setCancelable(true); |
| 2135 pointerEventInit.setComposed(true); | 2135 pointerEventInit.setComposed(true); |
| 2136 pointerEventInit.setDetail(0); | 2136 pointerEventInit.setDetail(0); |
| 2137 | 2137 |
| 2138 pointerEventInit.setScreenX(mouseEvent.globalX); | 2138 pointerEventInit.setScreenX(mouseEvent.positionInScreen().x); |
| 2139 pointerEventInit.setScreenY(mouseEvent.globalY); | 2139 pointerEventInit.setScreenY(mouseEvent.positionInScreen().y); |
| 2140 | 2140 |
| 2141 IntPoint locationInFrameZoomed; | 2141 IntPoint locationInFrameZoomed; |
| 2142 if (view && view->frame() && view->frame()->view()) { | 2142 if (view && view->frame() && view->frame()->view()) { |
| 2143 LocalFrame* frame = view->frame(); | 2143 LocalFrame* frame = view->frame(); |
| 2144 FrameView* frameView = frame->view(); | 2144 FrameView* frameView = frame->view(); |
| 2145 IntPoint locationInContents = frameView->rootFrameToContents( | 2145 IntPoint locationInContents = frameView->rootFrameToContents( |
| 2146 flooredIntPoint(mouseEvent.positionInRootFrame())); | 2146 flooredIntPoint(mouseEvent.positionInRootFrame())); |
| 2147 locationInFrameZoomed = frameView->contentsToFrame(locationInContents); | 2147 locationInFrameZoomed = frameView->contentsToFrame(locationInContents); |
| 2148 float scaleFactor = 1 / frame->pageZoomFactor(); | 2148 float scaleFactor = 1 / frame->pageZoomFactor(); |
| 2149 locationInFrameZoomed.scale(scaleFactor, scaleFactor); | 2149 locationInFrameZoomed.scale(scaleFactor, scaleFactor); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2515 if (node) { | 2515 if (node) { |
| 2516 std::stringstream stream; | 2516 std::stringstream stream; |
| 2517 node->printNodePathTo(stream); | 2517 node->printNodePathTo(stream); |
| 2518 LOG(INFO) << stream.str(); | 2518 LOG(INFO) << stream.str(); |
| 2519 } else { | 2519 } else { |
| 2520 LOG(INFO) << "Cannot showNodePath for <null>"; | 2520 LOG(INFO) << "Cannot showNodePath for <null>"; |
| 2521 } | 2521 } |
| 2522 } | 2522 } |
| 2523 | 2523 |
| 2524 #endif | 2524 #endif |
| OLD | NEW |