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

Unified Diff: Source/core/html/HTMLImportsController.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/editing/markup.cpp ('k') | Source/core/inspector/DOMPatchSupport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImportsController.cpp
diff --git a/Source/core/html/HTMLImportsController.cpp b/Source/core/html/HTMLImportsController.cpp
index 203d95536da0ff00c754489f3caca4e6e12e8ad4..b243f00cfab70b5dee6b04de669722dc05533b8d 100644
--- a/Source/core/html/HTMLImportsController.cpp
+++ b/Source/core/html/HTMLImportsController.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "core/html/HTMLImportsController.h"
+#include "core/dom/CustomElementRegistrationContextualizer.h"
#include "core/dom/Document.h"
#include "core/html/HTMLDocument.h"
#include "core/html/HTMLLinkElement.h"
@@ -181,6 +182,7 @@ HTMLImportLoader::State HTMLImportLoader::startParsing(const ResourceResponse& r
m_importedDocument = HTMLDocument::create(0, response.url());
m_importedDocument->setImport(this);
+ CustomElementRegistrationContextualizer::didCreateRelatedDocument(controller()->document()->registrationContext(), CustomElementRegistrationContextualizer::HTMLImport, m_importedDocument.get());
m_writer = DocumentWriter::create(m_importedDocument.get(), response.mimeType(), response.textEncodingName());
return StateLoading;
« no previous file with comments | « Source/core/editing/markup.cpp ('k') | Source/core/inspector/DOMPatchSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698