| Index: Source/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| index d4cf82ff5627b03daf140f65e103462bbe104915..b342aeae10f8314cc82c749ad00262908a48fb58 100644
|
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "bindings/core/v8/ExceptionStatePlaceholder.h"
|
| #include "core/CSSPropertyNames.h"
|
| #include "core/HTMLNames.h"
|
| +#include "core/InputTypeNames.h"
|
| #include "core/css/CSSStyleDeclaration.h"
|
| #include "core/css/StylePropertySet.h"
|
| #include "core/dom/Document.h"
|
| @@ -1289,7 +1290,7 @@ bool ReplaceSelectionCommand::shouldPerformSmartReplace() const
|
| return false;
|
|
|
| HTMLTextFormControlElement* textControl = enclosingTextFormControl(positionAtStartOfInsertedContent().deepEquivalent());
|
| - if (isHTMLInputElement(textControl) && toHTMLInputElement(textControl)->isPasswordField())
|
| + if (isHTMLInputElement(textControl) && toHTMLInputElement(textControl)->type() == InputTypeNames::password)
|
| return false; // Disable smart replace for password fields.
|
|
|
| return true;
|
|
|