Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 7fbc89d67dfcf5d943216bb5d87024fda3c2792d..d57a9b36635155e1f8416c2231ebaca2fbaefbaa 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -317,6 +317,28 @@ 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); |
+} |
bool Internals::isPreloaded(const String& url) |
{ |