| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 286fc9a7e8f6a10d129e3e9ff24f70275aafdb9f..6cdbedf9f0f108dea202dff0c0f05f39bb715213 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -102,6 +102,7 @@
|
| #include "core/html/HTMLInputElement.h"
|
| #include "core/html/HTMLMediaElement.h"
|
| #include "core/html/HTMLTextAreaElement.h"
|
| +#include "core/html/HTMLVideoElement.h"
|
| #include "core/inspector/InspectorController.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/loader/DocumentLoader.h"
|
| @@ -3176,7 +3177,7 @@ void WebViewImpl::performMediaPlayerAction(const WebMediaPlayerAction& action,
|
| {
|
| HitTestResult result = hitTestResultForWindowPos(location);
|
| RefPtr<Node> node = result.innerNonSharedNode();
|
| - if (!node->hasTagName(HTMLNames::videoTag) && !node->hasTagName(HTMLNames::audioTag))
|
| + if (!isHTMLVideoElement(node.get()) && !node->hasTagName(HTMLNames::audioTag))
|
| return;
|
|
|
| RefPtr<HTMLMediaElement> mediaElement =
|
|
|