| 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 f0e804cdbc34f928aef5338ad6a7a4319bda00b7..46e81a5a1f3f9d839288a7dbc86cb3dbcbf05aff 100644
|
| --- a/third_party/WebKit/Source/core/html/TextDocument.cpp
|
| +++ b/third_party/WebKit/Source/core/html/TextDocument.cpp
|
| @@ -34,7 +34,7 @@ TextDocument::TextDocument(const DocumentInit& initializer)
|
| setCompatibilityMode(QuirksMode);
|
| lockCompatibilityMode();
|
| UseCounter::count(*this, UseCounter::TextDocument);
|
| - if (ownerElement())
|
| + if (!isInMainFrame())
|
| UseCounter::count(*this, UseCounter::TextDocumentInFrame);
|
| }
|
|
|
|
|