OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 if (!m_frame->contentRenderer()) | 942 if (!m_frame->contentRenderer()) |
943 return result; | 943 return result; |
944 | 944 |
945 // hitTestResultAtPoint is specifically used to hitTest into all frames, thu
s it always allows child frame content. | 945 // hitTestResultAtPoint is specifically used to hitTest into all frames, thu
s it always allows child frame content. |
946 HitTestRequest request(hitType | HitTestRequest::AllowChildFrameContent); | 946 HitTestRequest request(hitType | HitTestRequest::AllowChildFrameContent); |
947 m_frame->contentRenderer()->hitTest(request, result); | 947 m_frame->contentRenderer()->hitTest(request, result); |
948 if (!request.readOnly()) | 948 if (!request.readOnly()) |
949 m_frame->document()->updateHoverActiveState(request, result.innerElement
()); | 949 m_frame->document()->updateHoverActiveState(request, result.innerElement
()); |
950 | 950 |
951 if (request.disallowsShadowContent()) | 951 if (request.disallowsShadowContent()) |
952 result.setToNonShadowAncestor(); | 952 result.setToNodesInDocumentTreeScope(); |
953 | 953 |
954 return result; | 954 return result; |
955 } | 955 } |
956 | 956 |
957 void EventHandler::stopAutoscrollTimer(bool rendererIsBeingDestroyed) | 957 void EventHandler::stopAutoscrollTimer(bool rendererIsBeingDestroyed) |
958 { | 958 { |
959 m_autoscrollController->stopAutoscrollTimer(rendererIsBeingDestroyed); | 959 m_autoscrollController->stopAutoscrollTimer(rendererIsBeingDestroyed); |
960 } | 960 } |
961 | 961 |
962 Node* EventHandler::mousePressNode() const | 962 Node* EventHandler::mousePressNode() const |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 if (RenderLayer* layer = layerForNode(hoveredNode.innerNode())) { | 1458 if (RenderLayer* layer = layerForNode(hoveredNode.innerNode())) { |
1459 if (FrameView* frameView = m_frame->view()) { | 1459 if (FrameView* frameView = m_frame->view()) { |
1460 if (frameView->containsScrollableArea(layer)) | 1460 if (frameView->containsScrollableArea(layer)) |
1461 layer->mouseMovedInContentArea(); | 1461 layer->mouseMovedInContentArea(); |
1462 } | 1462 } |
1463 } | 1463 } |
1464 | 1464 |
1465 if (FrameView* frameView = m_frame->view()) | 1465 if (FrameView* frameView = m_frame->view()) |
1466 frameView->mouseMovedInContentArea(); | 1466 frameView->mouseMovedInContentArea(); |
1467 | 1467 |
1468 hoveredNode.setToNonShadowAncestor(); | 1468 hoveredNode.setToShadowHostIfInUserAgentShadowRoot(); |
1469 page->chrome()->mouseDidMoveOverElement(hoveredNode, event.modifierFlags()); | 1469 page->chrome()->mouseDidMoveOverElement(hoveredNode, event.modifierFlags()); |
1470 page->chrome()->setToolTip(hoveredNode); | 1470 page->chrome()->setToolTip(hoveredNode); |
1471 | 1471 |
1472 return result; | 1472 return result; |
1473 } | 1473 } |
1474 | 1474 |
1475 bool EventHandler::passMouseMovedEventToScrollbars(const PlatformMouseEvent& eve
nt) | 1475 bool EventHandler::passMouseMovedEventToScrollbars(const PlatformMouseEvent& eve
nt) |
1476 { | 1476 { |
1477 HitTestResult hoveredNode; | 1477 HitTestResult hoveredNode; |
1478 return handleMouseMoveEvent(event, &hoveredNode, true); | 1478 return handleMouseMoveEvent(event, &hoveredNode, true); |
(...skipping 2441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3920 unsigned EventHandler::accessKeyModifiers() | 3920 unsigned EventHandler::accessKeyModifiers() |
3921 { | 3921 { |
3922 #if OS(DARWIN) | 3922 #if OS(DARWIN) |
3923 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3923 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3924 #else | 3924 #else |
3925 return PlatformEvent::AltKey; | 3925 return PlatformEvent::AltKey; |
3926 #endif | 3926 #endif |
3927 } | 3927 } |
3928 | 3928 |
3929 } // namespace WebCore | 3929 } // namespace WebCore |
OLD | NEW |