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

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: remove "active" hack for wheel event hit-test & using document.documentElement.scrollTop for scroll… 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 006aa2c40a9b7a45bfea777b122a31c3acd2a0e9..dc07433bdb5f98c9476d5953dacbb20671a6f216 100644
--- a/Source/core/input/EventHandler.cpp
+++ b/Source/core/input/EventHandler.cpp
@@ -1737,9 +1737,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);

Powered by Google App Engine
This is Rietveld 408576698