| Index: Source/core/input/EventHandler.cpp
|
| diff --git a/Source/core/input/EventHandler.cpp b/Source/core/input/EventHandler.cpp
|
| index 19698b6bf5a0b587896378adc6a5058273c8515d..0f9dd0cf3ff0750fadb0c22a50f7edc318535ea2 100644
|
| --- a/Source/core/input/EventHandler.cpp
|
| +++ b/Source/core/input/EventHandler.cpp
|
| @@ -1725,7 +1725,9 @@ bool EventHandler::handleWheelEvent(const PlatformWheelEvent& event)
|
|
|
| LayoutPoint vPoint = view->rootFrameToContents(event.position());
|
|
|
| - HitTestRequest request(HitTestRequest::ReadOnly);
|
| + // Pass Active to ensure that hit-test result in current document if otherwise empty
|
| + // TODO(majidvp): Avoid using Active to trigger hit-testing fallback. See http://crbug.com/505825
|
| + HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::Active);
|
| HitTestResult result(request, vPoint);
|
| doc->layoutView()->hitTest(result);
|
|
|
|
|