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

Unified Diff: Source/core/rendering/HitTestResult.cpp

Issue 338543003: Gesture event hit test refactoring and reduction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix release build Created 6 years, 6 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/rendering/HitTestResult.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/HitTestResult.cpp
diff --git a/Source/core/rendering/HitTestResult.cpp b/Source/core/rendering/HitTestResult.cpp
index 44ee77719c5bf06e7f857f2d036325467e0e35bb..31465f0e0a6199094088f63a8894d4ec04ab9339 100644
--- a/Source/core/rendering/HitTestResult.cpp
+++ b/Source/core/rendering/HitTestResult.cpp
@@ -484,6 +484,17 @@ HitTestResult::NodeSet& HitTestResult::mutableRectBasedTestResult()
return *m_rectBasedTestResult;
}
+void HitTestResult::resolveRectBasedTest(Node* resolvedInnerNode, const LayoutPoint& resolvedPointInMainFrame)
+{
+ ASSERT(isRectBasedTest());
+ ASSERT(m_hitTestLocation.containsPoint(resolvedPointInMainFrame));
+ m_innerNode = resolvedInnerNode;
+ m_hitTestLocation = HitTestLocation(resolvedPointInMainFrame);
+ m_pointInInnerNodeFrame = resolvedPointInMainFrame;
+ m_rectBasedTestResult = nullptr;
+ ASSERT(!isRectBasedTest());
+}
+
Node* HitTestResult::targetNode() const
{
Node* node = innerNode();
« no previous file with comments | « Source/core/rendering/HitTestResult.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698