/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// XXX Avoid including this here by moving function bodies to the cpp file. #include"mozilla/dom/Element.h"
class nsAtom; class nsIContent;
namespace mozilla::dom {
class Document; class Element;
class DocumentFragment : public FragmentOrElement { private: void Init() {
MOZ_ASSERT(mNodeInfo->NodeType() == DOCUMENT_FRAGMENT_NODE &&
mNodeInfo->Equals(nsGkAtoms::documentFragmentNodeName,
kNameSpaceID_None), "Bad NodeType in aNodeInfo");
}
public: using FragmentOrElement::GetFirstChild; using nsINode::QuerySelector; using nsINode::QuerySelectorAll; // Make sure bindings can see our superclass' protected GetElementById method. using nsINode::GetElementById;
nsresult BindToTree(BindContext&, nsINode& aParent) override {
NS_ASSERTION(false, "Trying to bind a fragment to a tree"); return NS_ERROR_NOT_IMPLEMENTED;
}
virtualvoid UnbindFromTree(UnbindContext&) override {
NS_ASSERTION(false, "Trying to unbind a fragment from a tree");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.