Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 8950dc3b2d2647704a6ae4ac86380e3a8e6bbe47..39689cc098bf5070b2dce9f44c9dc5755b20d8ed 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2796,7 +2796,7 @@ MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r |
{ |
ASSERT(!renderer() || renderer()->isRenderView()); |
- if (!renderer()) |
+ if (!renderer() || !view() || !view()->didFirstLayout()) |
ojan
2013/05/18 00:41:44
Here and at the other location, it probably deserv
|
return MouseEventWithHitTestResults(event, HitTestResult(LayoutPoint())); |
HitTestResult result(documentPoint); |