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

Unified Diff: Source/core/testing/Internals.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 | « Source/core/paint/DeprecatedPaintLayer.cpp ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index bc2c7c406117f533d2bcbefe94e5f18bd9af94cb..048846be23aa2654b5c9208270c1dde4770af6d6 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1372,8 +1372,8 @@ PassRefPtrWillBeRawPtr<StaticNodeList> Internals::nodesFromRect(Document* docume
return nullptr;
WillBeHeapVector<RefPtrWillBeMember<Node>> matches;
- HitTestResult result(point, topPadding, rightPadding, bottomPadding, leftPadding);
- layoutView->hitTest(request, result);
+ HitTestResult result(request, point, topPadding, rightPadding, bottomPadding, leftPadding);
+ layoutView->hitTest(result);
copyToVector(result.listBasedTestResult(), matches);
return StaticNodeList::adopt(matches);
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.cpp ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698