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

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

Issue 354613002: Add test to track the number of hit tests on various events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 05fd3f92a0893982f5b9a9bf378e926d135aca1c..a00980f83baa64bb31ec8f1b8a2742fe0aab0ff4 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -296,6 +296,17 @@ unsigned Internals::needsLayoutCount(ExceptionState& exceptionState) const
return needsLayoutObjects;
}
+unsigned Internals::hitTestCountDelta(Document* doc, ExceptionState& exceptionState) const
esprehn 2014/06/26 02:33:50 no "Delta".
Rick Byers 2014/06/26 15:35:18 Done.
+{
+ if (!doc) {
+ exceptionState.throwDOMException(InvalidAccessError, "Must supply document to check");
+ return 0;
+ }
+
+ return doc->renderView()->hitTestCountDelta();
+}
+
+
bool Internals::isPreloaded(const String& url)
{
Document* document = contextDocument();

Powered by Google App Engine
This is Rietveld 408576698