Index: Source/core/editing/FrameSelection.cpp |
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp |
index 06c5d0c5bad796e3fae537b93b17220840eeecaf..ee831506a2b5a0e024b16756bb4b798dc9330948 100644 |
--- a/Source/core/editing/FrameSelection.cpp |
+++ b/Source/core/editing/FrameSelection.cpp |
@@ -1681,7 +1681,7 @@ bool FrameSelection::setSelectedRange(Range* range, EAffinity affinity, bool clo |
bool FrameSelection::isInPasswordField() const |
{ |
HTMLTextFormControlElement* textControl = enclosingTextFormControl(start()); |
- return textControl && textControl->hasTagName(inputTag) && static_cast<HTMLInputElement*>(textControl)->isPasswordField(); |
+ return textControl && textControl->hasTagName(inputTag) && toHTMLInputElement(textControl)->isPasswordField(); |
} |
void FrameSelection::focusedOrActiveStateChanged() |