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

Unified Diff: third_party/WebKit/Source/core/loader/SinkDocument.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/loader/SinkDocument.cpp
diff --git a/third_party/WebKit/Source/core/loader/SinkDocument.cpp b/third_party/WebKit/Source/core/loader/SinkDocument.cpp
index 41e3d8586531d71b1702494def901ecf4707740a..6cd5fd410637aecba58a0d315c2da00aa67cd5ef 100644
--- a/third_party/WebKit/Source/core/loader/SinkDocument.cpp
+++ b/third_party/WebKit/Source/core/loader/SinkDocument.cpp
@@ -53,7 +53,7 @@ SinkDocument::SinkDocument(const DocumentInit& initializer)
setCompatibilityMode(QuirksMode);
lockCompatibilityMode();
UseCounter::count(*this, UseCounter::SinkDocument);
- if (ownerElement())
+ if (!isInMainFrame())
UseCounter::count(*this, UseCounter::SinkDocumentInFrame);
}

Powered by Google App Engine
This is Rietveld 408576698