Index: Source/core/html/shadow/TextFieldDecorationElement.cpp |
diff --git a/Source/core/html/shadow/TextFieldDecorationElement.cpp b/Source/core/html/shadow/TextFieldDecorationElement.cpp |
index bcc0e71efe8758d59d2e27802aa2c3959b86cb40..d20fb0d86d0abc2d3bca248d969b93a017e4e2ea 100644 |
--- a/Source/core/html/shadow/TextFieldDecorationElement.cpp |
+++ b/Source/core/html/shadow/TextFieldDecorationElement.cpp |
@@ -124,8 +124,7 @@ inline HTMLInputElement* TextFieldDecorationElement::hostInput() |
{ |
// TextFieldDecorationElement is created only by C++ code, and it is always |
// in <input> shadow. |
- ASSERT_WITH_SECURITY_IMPLICATION(!shadowHost() || shadowHost()->hasTagName(inputTag)); |
- return static_cast<HTMLInputElement*>(shadowHost()); |
+ return toHTMLInputElement(shadowHost()); |
} |
bool TextFieldDecorationElement::isTextFieldDecoration() const |