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 e96d3593e94bb0a3028ec7f8baff73128a2a7aa5..41e3d8586531d71b1702494def901ecf4707740a 100644 |
--- a/third_party/WebKit/Source/core/loader/SinkDocument.cpp |
+++ b/third_party/WebKit/Source/core/loader/SinkDocument.cpp |
@@ -26,6 +26,7 @@ |
#include "core/loader/SinkDocument.h" |
#include "core/dom/RawDataDocumentParser.h" |
+#include "core/frame/UseCounter.h" |
namespace blink { |
@@ -51,6 +52,9 @@ SinkDocument::SinkDocument(const DocumentInit& initializer) |
{ |
setCompatibilityMode(QuirksMode); |
lockCompatibilityMode(); |
+ UseCounter::count(*this, UseCounter::SinkDocument); |
+ if (ownerElement()) |
+ UseCounter::count(*this, UseCounter::SinkDocumentInFrame); |
} |
DocumentParser* SinkDocument::createParser() |