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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1177123003: Revert "Implement a Hit Test Cache for same point hits." (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('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 47246b8c65bae859f5801aa49a0db062d0af8dc6..5b224b03dfae57481a9c25238f15656f8497404a 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -317,41 +317,6 @@ unsigned Internals::hitTestCount(Document* doc, ExceptionState& exceptionState)
return doc->layoutView()->hitTestCount();
}
-unsigned Internals::hitTestCacheHits(Document* doc, ExceptionState& exceptionState) const
-{
- if (!doc) {
- exceptionState.throwDOMException(InvalidAccessError, "Must supply document to check");
- return 0;
- }
-
- return doc->layoutView()->hitTestCacheHits();
-}
-
-Element* Internals::elementFromPointNoCache(Document* doc, double x, double y, ExceptionState& exceptionState) const
-{
- if (!doc) {
- exceptionState.throwDOMException(InvalidAccessError, "Must supply document to check");
- return 0;
- }
-
- if (!doc->layoutView())
- return 0;
-
- return doc->elementFromPointNoCache(x, y);
-}
-
-void Internals::clearHitTestCache(Document* doc, ExceptionState& exceptionState) const
-{
- if (!doc) {
- exceptionState.throwDOMException(InvalidAccessError, "Must supply document to check");
- return;
- }
-
- if (!doc->layoutView())
- return;
-
- doc->layoutView()->clearHitTestCache();
-}
bool Internals::isPreloaded(const String& url)
{
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698