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

Unified Diff: Source/core/dom/Document.cpp

Issue 521363002: Make XHR use the background HTML parser (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: register before finish 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 866bdeda65440203d03980fc24b8636800b622c3..d697680b5a2b6b17e9972f719eddf958191cf2bb 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -182,6 +182,7 @@
#include "core/svg/SVGTitleElement.h"
#include "core/svg/SVGUseElement.h"
#include "core/workers/SharedWorkerRepositoryClient.h"
+#include "core/xml/XMLHttpRequest.h"
#include "core/xml/XSLTProcessor.h"
#include "core/xml/parser/XMLDocumentParser.h"
#include "platform/DateComponents.h"
@@ -4693,6 +4694,9 @@ void Document::finishedParsing()
if (HTMLImportLoader* import = importLoader())
import->didFinishParsing();
+
+ if (XMLHttpRequest* xhr = XMLHttpRequest::findInstancePendingDocumentParse(this))
+ xhr->didFinishParsingDocument();
abarth-chromium 2014/09/02 20:13:19 Can we make this into a generic client interface i
kouhei (in TOK) 2014/09/03 03:23:50 Got it. That makes more sense. Let me create a sep
kouhei (in TOK) 2014/09/09 22:14:40 Done. Rewrote the patch to use the DocumentParserC
}
void Document::elementDataCacheClearTimerFired(Timer<Document>*)

Powered by Google App Engine
This is Rietveld 408576698