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

Unified Diff: Source/core/dom/Document.cpp

Issue 14859016: Don't force layout for mouse event hit tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update all tests Created 7 years, 7 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
« no previous file with comments | « LayoutTests/touchadjustment/zoom-fatfinger.html ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « LayoutTests/touchadjustment/zoom-fatfinger.html ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698