Index: Source/core/dom/DocumentFragment.cpp |
diff --git a/Source/core/dom/DocumentFragment.cpp b/Source/core/dom/DocumentFragment.cpp |
index a88cbf8a5de5be697ae830a8efaa61d4d35b0ba2..56e637d3673aedbb441ac9a79e01614e28b0c81f 100644 |
--- a/Source/core/dom/DocumentFragment.cpp |
+++ b/Source/core/dom/DocumentFragment.cpp |
@@ -35,9 +35,9 @@ DocumentFragment::DocumentFragment(Document* document, ConstructionType construc |
ScriptWrappable::init(this); |
} |
-PassRefPtrWillBeRawPtr<DocumentFragment> DocumentFragment::create(Document& document) |
+PassRefPtrWillBeRawPtr<DocumentFragment> DocumentFragment::create(ExecutionContext* executionContext) |
{ |
- return adoptRefWillBeNoop(new DocumentFragment(&document, Node::CreateDocumentFragment)); |
+ return adoptRefWillBeNoop(new DocumentFragment(toDocument(executionContext), Node::CreateDocumentFragment)); |
} |
String DocumentFragment::nodeName() const |