| Index: Source/core/html/InputType.cpp
|
| diff --git a/Source/core/html/InputType.cpp b/Source/core/html/InputType.cpp
|
| index 8afcf0c210a9f4994a34069585e0e279628e889b..e3efe506377b59615e6f3792af00f67fb644c8d2 100644
|
| --- a/Source/core/html/InputType.cpp
|
| +++ b/Source/core/html/InputType.cpp
|
| @@ -73,7 +73,7 @@ namespace WebCore {
|
| using namespace HTMLNames;
|
| using namespace std;
|
|
|
| -typedef PassOwnPtr<InputType> (*InputTypeFactoryFunction)(HTMLInputElement*);
|
| +typedef PassRefPtr<InputType> (*InputTypeFactoryFunction)(HTMLInputElement*);
|
| typedef HashMap<AtomicString, InputTypeFactoryFunction, CaseFoldingHash> InputTypeFactoryMap;
|
|
|
| static PassOwnPtr<InputTypeFactoryMap> createInputTypeFactoryMap()
|
| @@ -112,7 +112,7 @@ static const InputTypeFactoryMap* factoryMap()
|
| return factoryMap;
|
| }
|
|
|
| -PassOwnPtr<InputType> InputType::create(HTMLInputElement* element, const AtomicString& typeName)
|
| +PassRefPtr<InputType> InputType::create(HTMLInputElement* element, const AtomicString& typeName)
|
| {
|
| InputTypeFactoryFunction factory = typeName.isEmpty() ? 0 : factoryMap()->get(typeName);
|
| if (!factory)
|
| @@ -120,7 +120,7 @@ PassOwnPtr<InputType> InputType::create(HTMLInputElement* element, const AtomicS
|
| return factory(element);
|
| }
|
|
|
| -PassOwnPtr<InputType> InputType::createText(HTMLInputElement* element)
|
| +PassRefPtr<InputType> InputType::createText(HTMLInputElement* element)
|
| {
|
| return TextInputType::create(element);
|
| }
|
|
|