Chromium Code Reviews| 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); |
| } |