Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMarqueeElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMetaElement-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698