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

Unified Diff: Source/core/html/EmailInputType.cpp

Issue 23502003: Make InputType and InputTypeView RefCounted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/EmailInputType.h ('k') | Source/core/html/FileInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/EmailInputType.cpp
diff --git a/Source/core/html/EmailInputType.cpp b/Source/core/html/EmailInputType.cpp
index 76aecd5fdb5dbaf263d138f01b65b14d3ac9d1f6..eea1fc3eb8adb1294058633ea3b58b1f9a6bef40 100644
--- a/Source/core/html/EmailInputType.cpp
+++ b/Source/core/html/EmailInputType.cpp
@@ -105,9 +105,9 @@ static bool isValidEmailAddress(const String& address)
return !matchOffset && matchLength == addressLength;
}
-PassOwnPtr<InputType> EmailInputType::create(HTMLInputElement* element)
+PassRefPtr<InputType> EmailInputType::create(HTMLInputElement* element)
{
- return adoptPtr(new EmailInputType(element));
+ return adoptRef(new EmailInputType(element));
}
void EmailInputType::countUsage()
« no previous file with comments | « Source/core/html/EmailInputType.h ('k') | Source/core/html/FileInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698