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

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

Issue 72683003: Auto-generate InputTypeNames source from InputTypeNames.in. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/core/html/forms/TextInputType.cpp
diff --git a/Source/core/html/forms/TextInputType.cpp b/Source/core/html/forms/TextInputType.cpp
index c90ace44d920381f2ab5a38c8073cc7e217ece39..a5e9db19398f0862915da6c188e6c506018703ca 100644
--- a/Source/core/html/forms/TextInputType.cpp
+++ b/Source/core/html/forms/TextInputType.cpp
@@ -31,8 +31,8 @@
#include "config.h"
#include "core/html/forms/TextInputType.h"
+#include "InputTypeNames.h"
#include "core/html/HTMLInputElement.h"
-#include "core/html/forms/InputTypeNames.h"
#include "wtf/PassOwnPtr.h"
namespace WebCore {
@@ -50,15 +50,15 @@ void TextInputType::countUsage()
if (element().fastHasAttribute(maxlengthAttr))
countUsageIfVisible(UseCounter::InputTypeTextMaxLength);
const AtomicString& type = element().fastGetAttribute(typeAttr);
- if (equalIgnoringCase(type, InputTypeNames::datetime()))
+ if (equalIgnoringCase(type, InputTypeNames::datetime))
countUsageIfVisible(UseCounter::InputTypeDateTimeFallback);
- else if (equalIgnoringCase(type, InputTypeNames::week()))
+ else if (equalIgnoringCase(type, InputTypeNames::week))
countUsageIfVisible(UseCounter::InputTypeWeekFallback);
}
const AtomicString& TextInputType::formControlType() const
{
- return InputTypeNames::text();
+ return InputTypeNames::text;
}
bool TextInputType::shouldRespectSpeechAttribute()

Powered by Google App Engine
This is Rietveld 408576698