| Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| index 06d4a93b6dfca9cb3d42b26427ecb7be2d3f6673..b63151e8f15d21d1043e9d9441db746f36f33a3f 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| @@ -629,7 +629,7 @@ Node::InsertionNotificationRequest HTMLMediaElement::insertedInto(ContainerNode*
|
| WTF_LOG(Media, "HTMLMediaElement::insertedInto(%p, %p)", this, insertionPoint);
|
|
|
| HTMLElement::insertedInto(insertionPoint);
|
| - if (insertionPoint->inDocument()) {
|
| + if (insertionPoint->inShadowIncludingDocument()) {
|
| UseCounter::count(document(), UseCounter::HTMLMediaElementInDocument);
|
| if (!getAttribute(srcAttr).isEmpty() && m_networkState == NETWORK_EMPTY) {
|
| m_ignorePreloadNone = false;
|
| @@ -3474,13 +3474,13 @@ void HTMLMediaElement::ensureMediaControls()
|
|
|
| assertShadowRootChildren(shadowRoot);
|
|
|
| - if (!shouldShowControls() || !inDocument())
|
| + if (!shouldShowControls() || !inShadowIncludingDocument())
|
| mediaControls->hide();
|
| }
|
|
|
| void HTMLMediaElement::configureMediaControls()
|
| {
|
| - if (!inDocument()) {
|
| + if (!inShadowIncludingDocument()) {
|
| if (mediaControls())
|
| mediaControls()->hide();
|
| return;
|
|
|