diff options
Diffstat (limited to 'WebCore/dom/DocumentFragment.cpp')
-rw-r--r-- | WebCore/dom/DocumentFragment.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/WebCore/dom/DocumentFragment.cpp b/WebCore/dom/DocumentFragment.cpp index 3663e99..7a6174f 100644 --- a/WebCore/dom/DocumentFragment.cpp +++ b/WebCore/dom/DocumentFragment.cpp @@ -1,8 +1,10 @@ -/* +/** + * This file is part of the DOM implementation for KDE. + * * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2001 Dirk Mueller (mueller@kde.org) - * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. + * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,18 +23,13 @@ */ #include "config.h" + #include "DocumentFragment.h" namespace WebCore { -inline DocumentFragment::DocumentFragment(Document* document) - : ContainerNode(document) -{ -} - -PassRefPtr<DocumentFragment> DocumentFragment::create(Document* document) +DocumentFragment::DocumentFragment(Document *doc) : ContainerNode(doc) { - return adoptRef(new DocumentFragment(document)); } String DocumentFragment::nodeName() const @@ -45,6 +42,7 @@ Node::NodeType DocumentFragment::nodeType() const return DOCUMENT_FRAGMENT_NODE; } +// DOM Section 1.1.1 bool DocumentFragment::childTypeAllowed(NodeType type) { switch (type) { @@ -62,7 +60,7 @@ bool DocumentFragment::childTypeAllowed(NodeType type) PassRefPtr<Node> DocumentFragment::cloneNode(bool deep) { - RefPtr<DocumentFragment> clone = create(document()); + RefPtr<DocumentFragment> clone = new DocumentFragment(document()); if (deep) cloneChildNodes(clone.get()); return clone.release(); |