Index: Source/core/editing/ReplaceSelectionCommand.cpp |
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
index c3f573895206e17ee60786ecb2406fd145f8d063..e810a9f46fcb2b4005ff861066ccf833d0b4e2c2 100644 |
--- a/Source/core/editing/ReplaceSelectionCommand.cpp |
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp |
@@ -1246,7 +1246,7 @@ bool ReplaceSelectionCommand::shouldPerformSmartReplace() const |
return false; |
Element* textControl = enclosingTextFormControl(positionAtStartOfInsertedContent().deepEquivalent()); |
- if (textControl && textControl->hasTagName(inputTag) && static_cast<HTMLInputElement*>(textControl)->isPasswordField()) |
+ if (textControl && textControl->hasTagName(inputTag) && toHTMLInputElement(textControl)->isPasswordField()) |
return false; // Disable smart replace for password fields. |
return true; |