Index: Source/core/html/shadow/MediaControlElementTypes.cpp |
diff --git a/Source/core/html/shadow/MediaControlElementTypes.cpp b/Source/core/html/shadow/MediaControlElementTypes.cpp |
index 23f88124472c59739be3dcc46c8b79681c53389d..921227b0748a3064c632b1f31805da55a9ae42d9 100644 |
--- a/Source/core/html/shadow/MediaControlElementTypes.cpp |
+++ b/Source/core/html/shadow/MediaControlElementTypes.cpp |
@@ -62,7 +62,7 @@ MediaControlElementType mediaControlElementType(Node* node) |
{ |
ASSERT_WITH_SECURITY_IMPLICATION(node->isMediaControlElement()); |
HTMLElement* element = toHTMLElement(node); |
- if (element->hasTagName(inputTag)) |
+ if (isHTMLInputElement(*element)) |
return static_cast<MediaControlInputElement*>(element)->displayType(); |
return static_cast<MediaControlDivElement*>(element)->displayType(); |
} |