Chromium Code Reviews| Index: Source/core/events/EventPath.cpp |
| diff --git a/Source/core/events/EventPath.cpp b/Source/core/events/EventPath.cpp |
| index 82ae6d7e4549760c0de73dcfe3655d92026152e0..60c341da992610d7d4c8d482075103a999037557 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) |
|
Inactive
2014/03/13 18:46:24
*element ? To avoid the null check.
|
| return StayInsideShadowDOM; |
| } |