Index: Source/core/page/Chrome.cpp |
diff --git a/Source/core/page/Chrome.cpp b/Source/core/page/Chrome.cpp |
index 7f86793de6eb9a72ca179525eb58ee7abdbbb0e7..a8e3e0b9a665cd8b2f059cfcc769865fc6419c46 100644 |
--- a/Source/core/page/Chrome.cpp |
+++ b/Source/core/page/Chrome.cpp |
@@ -360,7 +360,7 @@ void Chrome::setToolTip(const HitTestResult& result) |
if (toolTip.isEmpty()) { |
if (Node* node = result.innerNonSharedNode()) { |
if (node->hasTagName(inputTag)) { |
- HTMLInputElement* input = static_cast<HTMLInputElement*>(node); |
+ HTMLInputElement* input = toHTMLInputElement(node); |
toolTip = input->defaultToolTip(); |
// FIXME: We should obtain text direction of tooltip from |