Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index f312c9065ea572bb4fa5ec9c5ff465903a591a6a..fe4b9e9930cdfb18779738990aada9130daa493a 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -89,6 +89,7 @@ |
#include "core/html/HTMLMediaElement.h" |
#include "core/html/HTMLSelectElement.h" |
#include "core/html/HTMLTextAreaElement.h" |
+#include "core/html/canvas/CanvasRenderingContext2D.h" |
#include "core/html/forms/FormController.h" |
#include "core/html/shadow/ShadowElementNames.h" |
#include "core/html/shadow/TextControlInnerElements.h" |
@@ -2375,4 +2376,12 @@ void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc |
networkStateNotifier().setWebConnectionTypeForTest(webtype); |
} |
+unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) |
+{ |
+ if (!context) |
+ return -1; |
+ |
+ return context->hitRegionsCount(); |
+} |
+ |
} // namespace WebCore |