| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 Node* hoveredNodeForPoint(LocalFrame* frame, const IntPoint& pointInRootFrame, b
ool ignorePointerEventsNone) | 69 Node* hoveredNodeForPoint(LocalFrame* frame, const IntPoint& pointInRootFrame, b
ool ignorePointerEventsNone) |
| 70 { | 70 { |
| 71 HitTestRequest::HitTestRequestType hitType = HitTestRequest::Move | HitTestR
equest::ReadOnly | HitTestRequest::AllowChildFrameContent; | 71 HitTestRequest::HitTestRequestType hitType = HitTestRequest::Move | HitTestR
equest::ReadOnly | HitTestRequest::AllowChildFrameContent; |
| 72 if (ignorePointerEventsNone) | 72 if (ignorePointerEventsNone) |
| 73 hitType |= HitTestRequest::IgnorePointerEventsNone; | 73 hitType |= HitTestRequest::IgnorePointerEventsNone; |
| 74 HitTestRequest request(hitType); | 74 HitTestRequest request(hitType); |
| 75 HitTestResult result(request, frame->view()->rootFrameToContents(pointInRoot
Frame)); | 75 HitTestResult result(request, frame->view()->rootFrameToContents(pointInRoot
Frame)); |
| 76 frame->contentLayoutItem().hitTest(result); | 76 frame->contentLayoutItem().hitTest(result); |
| 77 Node* node = result.innerPossiblyPseudoNode(); | 77 Node* node = result.innerPossiblyPseudoNode(); |
| 78 while (node && node->getNodeType() == Node::TEXT_NODE) | 78 while (node && node->getNodeType() == Node::kTextNode) |
| 79 node = node->parentNode(); | 79 node = node->parentNode(); |
| 80 return node; | 80 return node; |
| 81 } | 81 } |
| 82 | 82 |
| 83 Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformGestureEvent& event,
bool ignorePointerEventsNone) | 83 Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformGestureEvent& event,
bool ignorePointerEventsNone) |
| 84 { | 84 { |
| 85 return hoveredNodeForPoint(frame, event.position(), ignorePointerEventsNone)
; | 85 return hoveredNodeForPoint(frame, event.position(), ignorePointerEventsNone)
; |
| 86 } | 86 } |
| 87 | 87 |
| 88 Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformMouseEvent& event, bo
ol ignorePointerEventsNone) | 88 Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformMouseEvent& event, bo
ol ignorePointerEventsNone) |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 790 |
| 791 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) | 791 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) |
| 792 { | 792 { |
| 793 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) | 793 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) |
| 794 return; | 794 return; |
| 795 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); | 795 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); |
| 796 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); | 796 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); |
| 797 } | 797 } |
| 798 | 798 |
| 799 } // namespace blink | 799 } // namespace blink |
| OLD | NEW |