| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/input/EventHandlingUtil.h" | 5 #include "core/input/EventHandlingUtil.h" |
| 6 | 6 |
| 7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "core/layout/api/LayoutViewItem.h" | 9 #include "core/layout/api/LayoutViewItem.h" |
| 10 #include "core/paint/PaintLayer.h" | 10 #include "core/paint/PaintLayer.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 MouseEventWithHitTestResults performMouseEventHitTest( | 111 MouseEventWithHitTestResults performMouseEventHitTest( |
| 112 LocalFrame* frame, | 112 LocalFrame* frame, |
| 113 const HitTestRequest& request, | 113 const HitTestRequest& request, |
| 114 const WebMouseEvent& mev) { | 114 const WebMouseEvent& mev) { |
| 115 DCHECK(frame); | 115 DCHECK(frame); |
| 116 DCHECK(frame->document()); | 116 DCHECK(frame->document()); |
| 117 | 117 |
| 118 return frame->document()->performMouseEventHitTest( | 118 return frame->document()->performMouseEventHitTest( |
| 119 request, contentPointFromRootFrame( | 119 request, |
| 120 frame, flooredIntPoint(mev.positionInRootFrame())), | 120 contentPointFromRootFrame(frame, |
| 121 flooredIntPoint(mev.positionInRootFrame())), |
| 121 mev); | 122 mev); |
| 122 } | 123 } |
| 123 | 124 |
| 124 } // namespace EventHandlingUtil | 125 } // namespace EventHandlingUtil |
| 125 } // namespace blink | 126 } // namespace blink |
| OLD | NEW |