Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(878)

Unified Diff: Source/core/input/EventHandler.cpp

Issue 1289753006: Fallback to root layer if hit-testing does not hit anything in iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix layout test Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/input/EventHandler.cpp
diff --git a/Source/core/input/EventHandler.cpp b/Source/core/input/EventHandler.cpp
index 9576c8bff491641bea1524683fdc2493de98e9e8..74b987a2477a4e15e977ff3b289cf69993a9d905 100644
--- a/Source/core/input/EventHandler.cpp
+++ b/Source/core/input/EventHandler.cpp
@@ -1730,9 +1730,7 @@ bool EventHandler::handleWheelEvent(const PlatformWheelEvent& event)
LayoutPoint vPoint = view->rootFrameToContents(event.position());
- // 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);
+ HitTestRequest request(HitTestRequest::ReadOnly);
HitTestResult result(request, vPoint);
doc->layoutView()->hitTest(result);
« no previous file with comments | « LayoutTests/fast/events/resources/body-overflow-iframe.html ('k') | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698