Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index bd3039f7000b9d7656b6c419d17ca277b8412423..83718f48b7560062f5374206650b625ea744f4b1 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -2400,7 +2400,10 @@ bool RenderLayer::hitTest(const HitTestRequest& request, const HitTestLocation& |
// We didn't hit any layer. If we are the root layer and the mouse is -- or just was -- down, |
// return ourselves. We do this so mouse events continue getting delivered after a drag has |
// exited the WebView, and so hit testing over a scrollbar hits the content document. |
- if (!request.isChildFrameHitTest() && (request.active() || request.release()) && isRootLayer()) { |
+ // In addtion, the mouse is possible to stay in document but there is no element. |
Julien - ping for review
2014/09/23 14:15:05
I don't think we say "the mouse is possible to sta
Miyoung Shin(g)
2014/09/24 01:34:15
Thank you to disabuse.
|
+ // At that time, the events of the mouse should be fired. |
+ LayoutPoint hitPoint = hitTestLocation.point(); |
+ if (!request.isChildFrameHitTest() && ((request.active() || request.release()) || (request.move() && hitTestArea.contains(hitPoint.x(), hitPoint.y()))) && isRootLayer()) { |
renderer()->updateHitTestResult(result, toRenderView(renderer())->flipForWritingMode(hitTestLocation.point())); |
insideLayer = this; |
} |