Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 3a020fbd25abf59ff3d65be557aa0b1cd73ac7d9..89e4dfb21696a8a5f0a93c54268a1f29fb6d97cd 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -79,6 +79,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,9 @@ void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc |
networkStateNotifier().setWebConnectionTypeForTest(webtype); |
} |
+unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) |
+{ |
+ return context->hitRegionsCount(); |
+} |
+ |
} // namespace WebCore |