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

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

Issue 869813003: Implement elementsFromPoint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typeo Created 5 years, 11 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
Index: Source/core/dom/TreeScope.h
diff --git a/Source/core/dom/TreeScope.h b/Source/core/dom/TreeScope.h
index 1e5efcf2f1debf28b4631f75cd06cdcb6b9285e5..143ac9b0a79db0c56d78dd031caedaf64898c026 100644
--- a/Source/core/dom/TreeScope.h
+++ b/Source/core/dom/TreeScope.h
@@ -40,6 +40,7 @@ class Element;
class HTMLLabelElement;
class HTMLMapElement;
class HitTestResult;
+class HitTestRequest;
class IdTargetObserverRegistry;
class ScopedStyleResolver;
class Node;
@@ -75,6 +76,7 @@ public:
HTMLMapElement* getImageMap(const String& url) const;
Element* elementFromPoint(int x, int y) const;
+ Vector<Element*> elementsFromPoint(int x, int y) const;
// For accessibility.
bool shouldCacheLabelsByForAttribute() const { return m_labelsByForAttribute; }
@@ -206,7 +208,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, HitTestRequest);
Rick Byers 2015/02/04 10:34:03 I think most places pass HitTestRequest by const r
pdr. 2015/02/17 04:10:13 Done
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698