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

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

Issue 706503002: Add UseCounters for lang and xml:lang content attributes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Count <input type=submit> with/without value= Created 6 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 | « Source/core/html/forms/SubmitInputType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/SubmitInputType.cpp
diff --git a/Source/core/html/forms/SubmitInputType.cpp b/Source/core/html/forms/SubmitInputType.cpp
index 926a1c7002a074b156c62ee6e5453221b44404db..3f0bf7a22d6f04c4e5650208ad13709444dc9c23 100644
--- a/Source/core/html/forms/SubmitInputType.cpp
+++ b/Source/core/html/forms/SubmitInputType.cpp
@@ -44,6 +44,7 @@ namespace blink {
PassRefPtrWillBeRawPtr<InputType> SubmitInputType::create(HTMLInputElement& element)
{
+ UseCounter::count(element.document(), UseCounter::InputTypeSubmit);
return adoptRefWillBeNoop(new SubmitInputType(element));
}
@@ -91,4 +92,10 @@ bool SubmitInputType::isTextButton() const
return true;
}
+void SubmitInputType::valueAttributeChanged()
+{
+ UseCounter::count(element().document(), UseCounter::InputTypeSubmitWithValue);
+ BaseButtonInputType::valueAttributeChanged();
+}
+
} // namespace blink
« no previous file with comments | « Source/core/html/forms/SubmitInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698