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

Unified Diff: Source/core/xml/DOMParser.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/loader/DocumentLoader.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/DOMParser.cpp
diff --git a/Source/core/xml/DOMParser.cpp b/Source/core/xml/DOMParser.cpp
index 561b34d57a9d504d94341dc9ff79cea96f1e5517..bbfbd111d7b2c68fa915198f59384d06176efdbd 100644
--- a/Source/core/xml/DOMParser.cpp
+++ b/Source/core/xml/DOMParser.cpp
@@ -19,6 +19,7 @@
#include "config.h"
#include "core/xml/DOMParser.h"
+#include "core/dom/CustomElementRegistrationContextualizer.h"
#include "core/dom/DOMImplementation.h"
#include "core/dom/Document.h"
#include <wtf/text/WTFString.h>
@@ -31,6 +32,7 @@ PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String&
return 0;
RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false);
+ CustomElementRegistrationContextualizer::didCreateDocument(CustomElementRegistrationContextualizer::DOMParser_parseFromString, doc.get());
doc->setContent(str);
return doc.release();
}
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698