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

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

Issue 15508003: Revert "Don't force layout for mouse event hit tests" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 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);
« 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