Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 9a70620667aa4f9032664dee09f16c8683e2ec11..595b8cbeb0b733cd76629a69e1cf5769936b019a 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -3645,6 +3645,15 @@ bool HTMLMediaElement::isInteractiveContent() const |
return fastHasAttribute(controlsAttr); |
} |
+void HTMLMediaElement::defaultEventHandler(Event* event) |
+{ |
+ if (event->type() == EventTypeNames::focusin) { |
+ if (hasMediaControls()) |
+ mediaControls()->mediaElementFocused(); |
+ } |
+ HTMLElement::defaultEventHandler(event); |
+} |
+ |
void HTMLMediaElement::trace(Visitor* visitor) |
{ |
visitor->trace(m_error); |