Index: Source/core/html/shadow/TextControlInnerElements.cpp |
diff --git a/Source/core/html/shadow/TextControlInnerElements.cpp b/Source/core/html/shadow/TextControlInnerElements.cpp |
index 26567d43c3d1c0d9390f3d4eec4c123dbfd8ef8c..b1fa3e63441abbd3b5c4f2bfe0b06f9621a922c4 100644 |
--- a/Source/core/html/shadow/TextControlInnerElements.cpp |
+++ b/Source/core/html/shadow/TextControlInnerElements.cpp |
@@ -168,7 +168,7 @@ const AtomicString& SearchFieldDecorationElement::shadowPseudoId() const |
Element* host = shadowHost(); |
if (!host) |
return resultsDecorationId; |
- if (host->hasTagName(inputTag)) { |
+ if (isHTMLInputElement(*host)) { |
if (toHTMLInputElement(host)->maxResults() < 0) |
return decorationId; |
return resultsDecorationId; |