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

Unified Diff: Source/core/html/HiddenInputType.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/HiddenInputType.h ('k') | Source/core/html/ImageInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HiddenInputType.cpp
diff --git a/Source/core/html/HiddenInputType.cpp b/Source/core/html/HiddenInputType.cpp
index 056f37905c4a27ae78fec8a4352158edd048323f..d4b0f9eda7d684c4dc3533c49b1fa32fa0c9466c 100644
--- a/Source/core/html/HiddenInputType.cpp
+++ b/Source/core/html/HiddenInputType.cpp
@@ -43,9 +43,9 @@ namespace WebCore {
using namespace HTMLNames;
-PassOwnPtr<InputType> HiddenInputType::create(HTMLInputElement* element)
+PassRefPtr<InputType> HiddenInputType::create(HTMLInputElement* element)
{
- return adoptPtr(new HiddenInputType(element));
+ return adoptRef(new HiddenInputType(element));
}
const AtomicString& HiddenInputType::formControlType() const
« no previous file with comments | « Source/core/html/HiddenInputType.h ('k') | Source/core/html/ImageInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698