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

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

Issue 208333014: Add a UseCounter for the Attr.value setter with associated Element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Attr.cpp
diff --git a/Source/core/dom/Attr.cpp b/Source/core/dom/Attr.cpp
index b6ca3b55de050250483078445aa38b99e5b95670..901e711d5b86ce0b21a9565ac6adb543b3e80521 100644
--- a/Source/core/dom/Attr.cpp
+++ b/Source/core/dom/Attr.cpp
@@ -123,6 +123,8 @@ const AtomicString& Attr::valueForBindings() const
void Attr::setValueForBindings(const AtomicString& value)
{
UseCounter::count(document(), UseCounter::AttrSetValue);
+ if (m_element)
+ UseCounter::count(document(), UseCounter::AttrSetValueWithElement);
setValueInternal(value);
}
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698