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

Unified Diff: Source/core/inspector/DOMPatchSupport.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/html/HTMLImportsController.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/DOMPatchSupport.cpp
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp
index 06736e91083ed6bacca31e0138ee8abaa3f30039..f5fc9c6a29257c19c7111a17a33243829e78b047 100644
--- a/Source/core/inspector/DOMPatchSupport.cpp
+++ b/Source/core/inspector/DOMPatchSupport.cpp
@@ -36,6 +36,7 @@
#include "HTMLNames.h"
#include "core/dom/Attribute.h"
#include "core/dom/ContextFeatures.h"
+#include "core/dom/CustomElementRegistrationContextualizer.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentFragment.h"
#include "core/dom/Node.h"
@@ -97,6 +98,7 @@ void DOMPatchSupport::patchDocument(const String& markup)
ASSERT(newDocument);
newDocument->setContextFeatures(m_document->contextFeatures());
+ CustomElementRegistrationContextualizer::didCreateRelatedDocument(m_document->registrationContext(), CustomElementRegistrationContextualizer::InspectorDOMPatch, newDocument.get());
RefPtr<DocumentParser> parser;
if (m_document->isHTMLDocument())
parser = HTMLDocumentParser::create(static_cast<HTMLDocument*>(newDocument.get()), false);
« no previous file with comments | « Source/core/html/HTMLImportsController.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698