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

Unified Diff: Source/core/html/forms/BaseCheckableInputType.cpp

Issue 1295173004: Count usage of reading HTMLInputElement::checked during click event handler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « Source/core/html/forms/BaseCheckableInputType.h ('k') | Source/core/html/forms/CheckboxInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/BaseCheckableInputType.cpp
diff --git a/Source/core/html/forms/BaseCheckableInputType.cpp b/Source/core/html/forms/BaseCheckableInputType.cpp
index 30156400440150b0968098c8325796af8f4453df..a5785efe91414a6f0ea57eedbf9408bb135b8731 100644
--- a/Source/core/html/forms/BaseCheckableInputType.cpp
+++ b/Source/core/html/forms/BaseCheckableInputType.cpp
@@ -106,6 +106,12 @@ void BaseCheckableInputType::setValue(const String& sanitizedValue, bool, TextFi
element().setAttribute(valueAttr, AtomicString(sanitizedValue));
}
+void BaseCheckableInputType::readingChecked() const
+{
+ if (m_isInClickHandler)
+ UseCounter::count(element().document(), UseCounter::ReadingCheckedInClickHandler);
+}
+
bool BaseCheckableInputType::isCheckable()
{
return true;
« no previous file with comments | « Source/core/html/forms/BaseCheckableInputType.h ('k') | Source/core/html/forms/CheckboxInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698