| Index: Source/core/dom/DocumentFragment.cpp
|
| diff --git a/Source/core/dom/DocumentFragment.cpp b/Source/core/dom/DocumentFragment.cpp
|
| index 3bbb750237007f8c822a807bc81d55fb0b907e39..141d571fe3f943fd86ff74a1ad0815be3c403994 100644
|
| --- a/Source/core/dom/DocumentFragment.cpp
|
| +++ b/Source/core/dom/DocumentFragment.cpp
|
| @@ -35,10 +35,9 @@ DocumentFragment::DocumentFragment(Document* document, ConstructionType construc
|
| ScriptWrappable::init(this);
|
| }
|
|
|
| -PassRefPtr<DocumentFragment> DocumentFragment::create(Document* document)
|
| +PassRefPtr<DocumentFragment> DocumentFragment::create(Document& document)
|
| {
|
| - ASSERT(document);
|
| - return adoptRef(new DocumentFragment(document, Node::CreateDocumentFragment));
|
| + return adoptRef(new DocumentFragment(&document, Node::CreateDocumentFragment));
|
| }
|
|
|
| String DocumentFragment::nodeName() const
|
| @@ -67,7 +66,7 @@ bool DocumentFragment::childTypeAllowed(NodeType type) const
|
|
|
| PassRefPtr<Node> DocumentFragment::cloneNode(bool deep)
|
| {
|
| - RefPtr<DocumentFragment> clone = create(&document());
|
| + RefPtr<DocumentFragment> clone = create(document());
|
| if (deep)
|
| cloneChildNodes(clone.get());
|
| return clone.release();
|
|
|