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

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

Issue 1866343002: Measure usage of image/media/plugin/text documents (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/TextDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/TextDocument.cpp b/third_party/WebKit/Source/core/html/TextDocument.cpp
index 707c41905f76334efc935065d47a64ce36a3ccbe..f0e804cdbc34f928aef5338ad6a7a4319bda00b7 100644
--- a/third_party/WebKit/Source/core/html/TextDocument.cpp
+++ b/third_party/WebKit/Source/core/html/TextDocument.cpp
@@ -33,6 +33,9 @@ TextDocument::TextDocument(const DocumentInit& initializer)
{
setCompatibilityMode(QuirksMode);
lockCompatibilityMode();
+ UseCounter::count(*this, UseCounter::TextDocument);
+ if (ownerElement())
+ UseCounter::count(*this, UseCounter::TextDocumentInFrame);
}
DocumentParser* TextDocument::createParser()
« no previous file with comments | « third_party/WebKit/Source/core/html/PluginDocument.cpp ('k') | third_party/WebKit/Source/core/loader/SinkDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698