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

Unified Diff: third_party/WebKit/Source/core/dom/Attr.cpp

Issue 1474083002: Add a use counter for Attr.prototype.cloneNode() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop deprecation test message Created 5 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Attr.cpp
diff --git a/third_party/WebKit/Source/core/dom/Attr.cpp b/third_party/WebKit/Source/core/dom/Attr.cpp
index bfbd4a9d75de6a152c217eae41479217c42a5274..28fbb4624f3a640e75623ef5c306e99289152ee7 100644
--- a/third_party/WebKit/Source/core/dom/Attr.cpp
+++ b/third_party/WebKit/Source/core/dom/Attr.cpp
@@ -117,6 +117,7 @@ void Attr::setNodeValue(const String& v)
PassRefPtrWillBeRawPtr<Node> Attr::cloneNode(bool /*deep*/)
{
+ UseCounter::count(document(), UseCounter::AttrCloneNode);
return adoptRefWillBeNoop(new Attr(document(), m_name, value()));
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698