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

Unified Diff: Source/core/xml/parser/XMLDocumentParser.cpp

Issue 552673002: Added UseCounter for XML external DTD. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« Source/core/frame/UseCounter.h ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/parser/XMLDocumentParser.cpp
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
index 37d889a20265aed4203f654473a0db8e86d5e82b..e47efa395885957385fd537c06331ade3b6ff854 100644
--- a/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -629,6 +629,8 @@ static void* openFunc(const char* uri)
ASSERT(XMLDocumentParserScope::currentFetcher);
ASSERT(currentThread() == libxmlLoaderThread);
+ UseCounter::count(XMLDocumentParserScope::currentFetcher->document(), UseCounter::XMLExternalDTD);
kouhei (in TOK) 2014/09/08 17:07:58 Let's move this down.
tasak 2014/09/09 03:07:06 Done.
+
KURL url(KURL(), uri);
if (!shouldAllowExternalLoad(url))
« Source/core/frame/UseCounter.h ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698