Index: Source/core/page/Chrome.cpp |
diff --git a/Source/core/page/Chrome.cpp b/Source/core/page/Chrome.cpp |
index 873ab3b768fac7a0cfb182e30f329c1f75f0424b..980cbbc232a1166d90099899b751e5815ab7e3cb 100644 |
--- a/Source/core/page/Chrome.cpp |
+++ b/Source/core/page/Chrome.cpp |
@@ -283,7 +283,7 @@ void Chrome::setToolTip(const HitTestResult& result) |
// Lastly, for <input type="file"> that allow multiple files, we'll consider a tooltip for the selected filenames |
if (toolTip.isEmpty()) { |
if (Node* node = result.innerNonSharedNode()) { |
- if (node->hasTagName(inputTag)) { |
+ if (isHTMLInputElement(*node)) { |
HTMLInputElement* input = toHTMLInputElement(node); |
toolTip = input->defaultToolTip(); |