Index: Source/core/editing/ReplaceSelectionCommand.cpp |
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
index 494a4653907afbeb3e77e7511e2ef5474e1332b3..0d9bfd2e58d900467d936fccf4f962b0cdc928ba 100644 |
--- a/Source/core/editing/ReplaceSelectionCommand.cpp |
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp |
@@ -1250,7 +1250,7 @@ bool ReplaceSelectionCommand::shouldPerformSmartReplace() const |
if (!m_smartReplace) |
return false; |
- Element* textControl = enclosingTextFormControl(positionAtStartOfInsertedContent().deepEquivalent()); |
+ Element* textControl = Handle<HTMLTextFormControlElement>(enclosingTextFormControl(positionAtStartOfInsertedContent().deepEquivalent())).raw(); |
if (textControl && textControl->hasTagName(inputTag) && static_cast<HTMLInputElement*>(textControl)->isPasswordField()) |
return false; // Disable smart replace for password fields. |