Index: Source/core/paint/DeprecatedPaintLayer.cpp |
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp |
index ab65b911838ce0184d324bcf406f3da45531eeb7..0d85e1850b53f456bb8f3e2bfa8ceb382f0ac764 100644 |
--- a/Source/core/paint/DeprecatedPaintLayer.cpp |
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp |
@@ -1603,6 +1603,9 @@ bool DeprecatedPaintLayer::hitTest(const HitTestRequest& request, const HitTestL |
// exited the WebView, and so hit testing over a scrollbar hits the content document. |
// In addtion, it is possible for the mouse to stay in the document but there is no element. |
// At that time, the events of the mouse should be fired. |
+ // TODO(majidvp): This should apply more consistently across different event types and we |
+ // should not use RequestType for it. Perhaps best for it to be done at a higher level. See |
+ // http://crbug.com/505825 |
LayoutPoint hitPoint = hitTestLocation.point(); |
if (!request.isChildFrameHitTest() && ((request.active() || request.release()) || (request.move() && hitTestArea.contains(hitPoint.x(), hitPoint.y()))) && isRootLayer()) { |
layoutObject()->updateHitTestResult(result, toLayoutView(layoutObject())->flipForWritingMode(hitTestLocation.point())); |