Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index 0328a3ed9de5f9657b8f58a653b6f6e52d52db30..539d2f71f2e3577a111663c2a5018ddfae3bf339 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -38,6 +38,7 @@ |
#include "core/dom/CDATASection.h" |
#include "core/dom/ChildListMutationScope.h" |
#include "core/dom/ContextFeatures.h" |
+#include "core/dom/CustomElementRegistrationContextualizer.h" |
#include "core/dom/DocumentFragment.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/ExceptionCodePlaceholder.h" |
@@ -709,6 +710,7 @@ PassRefPtr<DocumentFragment> createFragmentFromMarkupWithContext(Document* docum |
RefPtr<DocumentFragment> taggedFragment = createFragmentFromMarkup(document, taggedMarkup.toString(), baseURL, parserContentPolicy); |
RefPtr<Document> taggedDocument = Document::create(0, KURL()); |
+ CustomElementRegistrationContextualizer::didCreateRelatedDocument(document->registrationContext(), CustomElementRegistrationContextualizer::PasteboardFragment, taggedDocument.get()); |
taggedDocument->setContextFeatures(document->contextFeatures()); |
taggedDocument->takeAllChildrenFrom(taggedFragment.get()); |