Index: Source/core/events/EventPath.cpp |
diff --git a/Source/core/events/EventPath.cpp b/Source/core/events/EventPath.cpp |
index 82ae6d7e4549760c0de73dcfe3655d92026152e0..4f2a8b9907db7b1cde145e130e7fda0ad897be73 100644 |
--- a/Source/core/events/EventPath.cpp |
+++ b/Source/core/events/EventPath.cpp |
@@ -39,6 +39,7 @@ |
#include "core/events/MouseEvent.h" |
#include "core/events/TouchEvent.h" |
#include "core/events/TouchEventContext.h" |
+#include "core/html/HTMLMediaElement.h" |
#include "core/svg/SVGElementInstance.h" |
#include "core/svg/SVGUseElement.h" |
@@ -86,7 +87,7 @@ static inline EventDispatchBehavior determineDispatchBehavior(Event* event, Shad |
if (Element* element = FullscreenElementStack::currentFullScreenElementFrom(target->toNode()->document())) { |
// FIXME: We assume that if the full screen element is a media element that it's |
// the video-only full screen. Both here and elsewhere. But that is probably wrong. |
- if (element->isMediaElement() && shadowRoot && shadowRoot->host() == element) |
+ if (isHTMLMediaElement(*element) && shadowRoot && shadowRoot->host() == element) |
return StayInsideShadowDOM; |
} |