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

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

Issue 27746003: Have InputType factories take an HTMLInputElement reference in parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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/TextInputType.h ('k') | Source/core/html/forms/TimeInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/TextInputType.cpp
diff --git a/Source/core/html/forms/TextInputType.cpp b/Source/core/html/forms/TextInputType.cpp
index 0b1d56dcdc72dcb434611a68aa9266ccdeb95656..e15324a443b650e21460baec232ae0f286f1169f 100644
--- a/Source/core/html/forms/TextInputType.cpp
+++ b/Source/core/html/forms/TextInputType.cpp
@@ -39,14 +39,14 @@ namespace WebCore {
using namespace HTMLNames;
-PassRefPtr<InputType> TextInputType::create(HTMLInputElement* element)
+PassRefPtr<InputType> TextInputType::create(HTMLInputElement& element)
{
return adoptRef(new TextInputType(element));
}
void TextInputType::countUsage()
{
- const AtomicString& type = element()->fastGetAttribute(typeAttr);
+ const AtomicString& type = element().fastGetAttribute(typeAttr);
if (equalIgnoringCase(type, InputTypeNames::datetime()))
observeFeatureIfVisible(UseCounter::InputTypeDateTimeFallback);
else if (equalIgnoringCase(type, InputTypeNames::week()))
« no previous file with comments | « Source/core/html/forms/TextInputType.h ('k') | Source/core/html/forms/TimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698