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

Unified Diff: Source/core/html/FileInputType.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/FileInputType.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FileInputType.cpp
diff --git a/Source/core/html/FileInputType.cpp b/Source/core/html/FileInputType.cpp
index c171a91d475271c01d7efa8cb41fe02b0abd1808..7be998ddd6b59f850924a8ee7a21fe19bf3a9334 100644
--- a/Source/core/html/FileInputType.cpp
+++ b/Source/core/html/FileInputType.cpp
@@ -53,9 +53,9 @@ inline FileInputType::FileInputType(HTMLInputElement* element)
{
}
-PassOwnPtr<InputType> FileInputType::create(HTMLInputElement* element)
+PassRefPtr<InputType> FileInputType::create(HTMLInputElement* element)
{
- return adoptPtr(new FileInputType(element));
+ return adoptRef(new FileInputType(element));
}
Vector<FileChooserFileInfo> FileInputType::filesFromFormControlState(const FormControlState& state)
« no previous file with comments | « Source/core/html/FileInputType.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698