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

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

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 years, 9 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 | « no previous file | Source/core/dom/TreeScope.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 4bd356449867a7b8652b9dc66869cdd11ce155ea..ab3289a946187f852fbbbdbc715fedb944797ea9 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3102,10 +3102,10 @@ MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r
// happening, which could show a flash of white.
// See also the similar code in EventHandler::hitTestResultAtPoint.
if (!layoutView() || !view() || !view()->didFirstLayout())
- return MouseEventWithHitTestResults(event, HitTestResult(LayoutPoint()));
+ return MouseEventWithHitTestResults(event, HitTestResult(request, LayoutPoint()));
- HitTestResult result(documentPoint);
- layoutView()->hitTest(request, result);
+ HitTestResult result(request, documentPoint);
+ layoutView()->hitTest(result);
if (!request.readOnly())
updateHoverActiveState(request, result.innerElement(), &event);
« no previous file with comments | « no previous file | Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698