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

Unified Diff: Source/core/xml/XMLHttpRequest.cpp

Issue 19002005: Share Custom Element registration contexts between related documents. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweak the test to do lazy wrapping in both cases. Created 7 years, 5 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
« no previous file with comments | « Source/core/xml/DOMParser.cpp ('k') | Source/core/xml/XSLTProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLHttpRequest.cpp
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
index d1a700e6e95a61f32adf0d7b5d7298cfbc4e15dd..4ba5117f0b0554c4a4b33a1232b3ee44f02c5276 100644
--- a/Source/core/xml/XMLHttpRequest.cpp
+++ b/Source/core/xml/XMLHttpRequest.cpp
@@ -30,6 +30,7 @@
#include <wtf/text/CString.h>
#include <wtf/UnusedParam.h>
#include "core/dom/ContextFeatures.h"
+#include "core/dom/CustomElementRegistrationContextualizer.h"
#include "core/dom/DOMImplementation.h"
#include "core/dom/Event.h"
#include "core/dom/EventListener.h"
@@ -251,6 +252,7 @@ Document* XMLHttpRequest::responseXML(ExceptionCode& ec)
m_responseDocument->setContent(m_responseText.flattenToString());
m_responseDocument->setSecurityOrigin(securityOrigin());
m_responseDocument->setContextFeatures(document()->contextFeatures());
+ CustomElementRegistrationContextualizer::didCreateDocument(CustomElementRegistrationContextualizer::XHR_responseXML, m_responseDocument.get());
if (!m_responseDocument->wellFormed())
m_responseDocument = 0;
}
« no previous file with comments | « Source/core/xml/DOMParser.cpp ('k') | Source/core/xml/XSLTProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698