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

Unified Diff: Source/core/dom/TreeScope.h

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove validity rect as per Elliott's request Created 5 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/dom/Document.cpp ('k') | 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/TreeScope.h
diff --git a/Source/core/dom/TreeScope.h b/Source/core/dom/TreeScope.h
index 1bfcdf91861bd05cc0b548b98cc7eebc3ba2422e..08c246254c1b8fcbb01e1cd69c2a047ad7508171 100644
--- a/Source/core/dom/TreeScope.h
+++ b/Source/core/dom/TreeScope.h
@@ -29,6 +29,7 @@
#include "core/CoreExport.h"
#include "core/dom/DocumentOrderedMap.h"
+#include "core/layout/HitTestRequest.h"
#include "platform/heap/Handle.h"
#include "wtf/text/AtomicString.h"
@@ -41,7 +42,6 @@ class Element;
class HTMLLabelElement;
class HTMLMapElement;
class HitTestResult;
-class HitTestRequest;
class IdTargetObserverRegistry;
class ScopedStyleResolver;
class Node;
@@ -77,6 +77,7 @@ public:
HTMLMapElement* getImageMap(const String& url) const;
Element* elementFromPoint(int x, int y) const;
+ Element* hitTestPoint(int x, int y, const HitTestRequest&) const;
Vector<Element*> elementsFromPoint(int x, int y) const;
// For accessibility.
@@ -208,7 +209,7 @@ inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) co
DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope)
-HitTestResult hitTestInDocument(const Document*, int x, int y);
+HitTestResult hitTestInDocument(const Document*, int x, int y, const HitTestRequest& = HitTestRequest::ReadOnly | HitTestRequest::Active);
} // namespace blink
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698