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

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

Issue 1942623002: Rename Document::ownerElement to localOwner and fix main frame checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove duplication in const overload 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/MediaDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/MediaDocument.cpp b/third_party/WebKit/Source/core/html/MediaDocument.cpp
index 8636dfa4ba2492cf1a64b513c2862236f9c6a52b..8212f5d1ad6e254d1023523cb3de7dab0079896f 100644
--- a/third_party/WebKit/Source/core/html/MediaDocument.cpp
+++ b/third_party/WebKit/Source/core/html/MediaDocument.cpp
@@ -235,7 +235,7 @@ MediaDocument::MediaDocument(const DocumentInit& initializer)
setCompatibilityMode(QuirksMode);
lockCompatibilityMode();
UseCounter::count(*this, UseCounter::MediaDocument);
- if (ownerElement())
+ if (!isInMainFrame())
UseCounter::count(*this, UseCounter::MediaDocumentInFrame);
}

Powered by Google App Engine
This is Rietveld 408576698