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

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

Issue 300223009: Implement basic parts of hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add clip tests 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 d258aca14acae4e52a9a8835f2e90c400e95e5a6..8051a0b22c103cdfd58fdb7580ccfcfb847a0a3d 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -87,6 +87,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"
@@ -2374,4 +2375,9 @@ void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc
networkStateNotifier().setWebConnectionTypeForTest(webtype);
}
+unsigned Internals::countHitRegions(CanvasRenderingContext2D* context)
+{
+ return context->hitRegionsCount();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698