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

Unified Diff: third_party/WebKit/Source/core/svg/SVGCursorElement.cpp

Issue 2376613004: Add use counters for SVGCursorElement (Closed)
Patch Set: Add test Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGCursorElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGCursorElement.cpp b/third_party/WebKit/Source/core/svg/SVGCursorElement.cpp
index 87116a0583f6d67e53182d650cf5c45bb81b8d8c..4cfa5c1d7bc55d7c7614953ed2e21158fb781786 100644
--- a/third_party/WebKit/Source/core/svg/SVGCursorElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGCursorElement.cpp
@@ -22,6 +22,7 @@
#include "core/SVGNames.h"
#include "core/dom/StyleChangeReason.h"
+#include "core/frame/UseCounter.h"
namespace blink {
@@ -34,6 +35,8 @@ inline SVGCursorElement::SVGCursorElement(Document& document)
{
addToPropertyMap(m_x);
addToPropertyMap(m_y);
+
+ UseCounter::count(document, UseCounter::SVGCursorElement);
}
DEFINE_NODE_FACTORY(SVGCursorElement)
@@ -44,6 +47,8 @@ SVGCursorElement::~SVGCursorElement()
void SVGCursorElement::addClient(SVGElement* element)
{
+ UseCounter::count(document(), UseCounter::SVGCursorElementHasClient);
foolip 2016/09/28 14:57:01 If this is not reach, the whole element has no eff
fs 2016/09/28 15:03:01 That is correct, yes. Technically we still don't k
+
m_clients.add(element);
element->setCursorElement(this);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698