Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index efb3a7b8b57bf92a1a528dc7558baf3732306cd1..82b7316e602ac7b871a92e3febe4ca91dbd5a27d 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2800,13 +2800,7 @@ MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r |
{ |
ASSERT(!renderer() || renderer()->isRenderView()); |
- // RenderView::hitTest causes a layout, and we don't want to hit that until the first |
- // layout because until then, there is nothing shown on the screen - the user can't |
- // have intentionally clicked on something belonging to this page. Furthermore, |
- // mousemove events before the first layout should not lead to a premature layout() |
- // happening, which could show a flash of white. |
- // See also the similar code in EventHandler::hitTestResultAtPoint. |
- if (!renderer() || !view() || !view()->didFirstLayout()) |
+ if (!renderer()) |
return MouseEventWithHitTestResults(event, HitTestResult(LayoutPoint())); |
HitTestResult result(documentPoint); |