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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElement.cpp

Issue 2703423009: Add use counters for recently launched canvas features (Closed)
Patch Set: histo fix Created 3 years, 10 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: third_party/WebKit/Source/core/html/HTMLImageElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
index a574c90babc57617f521a2b050dc7ace90e4d29a..50e6b073eedc0b5ff72e9d0010853efa7bd28c70 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
@@ -645,6 +645,7 @@ PassRefPtr<Image> HTMLImageElement::getSourceImageForCanvas(
RefPtr<Image> sourceImage;
if (cachedImage()->getImage()->isSVGImage()) {
+ UseCounter::count(document(), UseCounter::SVGInCanvas2D);
SVGImage* svgImage = toSVGImage(cachedImage()->getImage());
IntSize imageSize =
roundedIntSize(svgImage->concreteObjectSize(defaultObjectSize));

Powered by Google App Engine
This is Rietveld 408576698