Rename AtomicString to AtomString
[WebKit.git] / Source / WebCore / html / PasswordInputType.cpp
index 10c2d9f..f7b975e 100644 (file)
 
 #include "FormController.h"
 #include "HTMLInputElement.h"
+#include "InputTypeNames.h"
 #include <wtf/Assertions.h>
-#include <wtf/PassOwnPtr.h>
 
 namespace WebCore {
 
-PassOwnPtr<InputType> PasswordInputType::create(HTMLInputElement* element)
+const AtomString& PasswordInputType::formControlType() const
 {
-    return adoptPtr(new PasswordInputType(element));
+    return InputTypeNames::password();
 }
 
-const AtomicString& PasswordInputType::formControlType() const
+bool PasswordInputType::shouldSaveAndRestoreFormControlState() const
 {
-    return InputTypeNames::password();
+    return false;
 }
 
 FormControlState PasswordInputType::saveFormControlState() const
 {
     // Should never save/restore password fields.
+    ASSERT_NOT_REACHED();
     return FormControlState();
 }
 
@@ -78,28 +79,9 @@ bool PasswordInputType::shouldRespectListAttribute()
     return false;
 }
 
-bool PasswordInputType::shouldRespectSpeechAttribute()
-{
-    return true;
-}
-
 bool PasswordInputType::isPasswordField() const
 {
     return true;
 }
 
-void PasswordInputType::handleFocusEvent()
-{
-    BaseTextInputType::handleFocusEvent();
-    if (element()->document()->frame())
-        element()->document()->setUseSecureKeyboardEntryWhenActive(true);
-}
-
-void PasswordInputType::handleBlurEvent()
-{
-    if (element()->document()->frame())
-        element()->document()->setUseSecureKeyboardEntryWhenActive(false);
-    BaseTextInputType::handleBlurEvent();
-}
-
 } // namespace WebCore