| Index: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| index 90a86f6e9897604811faebcbd56eb3150fb0f959..1d625b7b581df69f0afa97b5314731e010df7487 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| @@ -79,6 +79,21 @@ DEFINE_TRACE(HTMLVideoElement) {
|
| HTMLMediaElement::trace(visitor);
|
| }
|
|
|
| +Node::InsertionNotificationRequest HTMLVideoElement::insertedInto(
|
| + ContainerNode* insertionPoint) {
|
| + if (insertionPoint->isConnected() && m_customControlsFullscreenDetector)
|
| + m_customControlsFullscreenDetector->attach();
|
| +
|
| + return HTMLMediaElement::insertedInto(insertionPoint);
|
| +}
|
| +
|
| +void HTMLVideoElement::removedFrom(ContainerNode* insertionPoint) {
|
| + HTMLMediaElement::removedFrom(insertionPoint);
|
| +
|
| + if (m_customControlsFullscreenDetector)
|
| + m_customControlsFullscreenDetector->detach();
|
| +}
|
| +
|
| void HTMLVideoElement::contextDestroyed(ExecutionContext* context) {
|
| if (m_customControlsFullscreenDetector)
|
| m_customControlsFullscreenDetector->contextDestroyed();
|
|
|