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

Unified Diff: Source/core/html/forms/URLInputType.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/URLInputType.h ('k') | Source/core/html/forms/WeekInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/URLInputType.cpp
diff --git a/Source/core/html/forms/URLInputType.cpp b/Source/core/html/forms/URLInputType.cpp
index c58107eefb3b3529e67506fd48f8c04411159875..f662e1ad52f621adf63cab50b2756644985032a6 100644
--- a/Source/core/html/forms/URLInputType.cpp
+++ b/Source/core/html/forms/URLInputType.cpp
@@ -38,7 +38,7 @@
namespace WebCore {
-PassRefPtr<InputType> URLInputType::create(HTMLInputElement* element)
+PassRefPtr<InputType> URLInputType::create(HTMLInputElement& element)
{
return adoptRef(new URLInputType(element));
}
@@ -60,7 +60,7 @@ bool URLInputType::typeMismatchFor(const String& value) const
bool URLInputType::typeMismatch() const
{
- return typeMismatchFor(element()->value());
+ return typeMismatchFor(element().value());
}
String URLInputType::typeMismatchText() const
« no previous file with comments | « Source/core/html/forms/URLInputType.h ('k') | Source/core/html/forms/WeekInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698