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

Unified Diff: third_party/WebKit/Source/core/html/PluginDocument.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: Removed const changes and some gratuitous checks Created 4 years, 7 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/PluginDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/PluginDocument.cpp b/third_party/WebKit/Source/core/html/PluginDocument.cpp
index e435b58b077b2dbf2c01ea121054d136f8088f93..c815688794bf46cb231b5aa2e5f861624ed7d3b6 100644
--- a/third_party/WebKit/Source/core/html/PluginDocument.cpp
+++ b/third_party/WebKit/Source/core/html/PluginDocument.cpp
@@ -168,7 +168,7 @@ PluginDocument::PluginDocument(const DocumentInit& initializer)
setCompatibilityMode(QuirksMode);
lockCompatibilityMode();
UseCounter::count(*this, UseCounter::PluginDocument);
- if (ownerElement())
+ if (!isInMainFrame())
UseCounter::count(*this, UseCounter::PluginDocumentInFrame);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/MediaDocument.cpp ('k') | third_party/WebKit/Source/core/html/TextDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698