nsXMLElement.h (943B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef nsXMLElement_h___ 8 #define nsXMLElement_h___ 9 10 #include "mozilla/dom/Element.h" 11 12 class nsXMLElement : public mozilla::dom::Element { 13 public: 14 explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) 15 : mozilla::dom::Element(std::move(aNodeInfo)) {} 16 17 // nsISupports 18 NS_INLINE_DECL_REFCOUNTING_INHERITED(nsXMLElement, mozilla::dom::Element) 19 20 // nsINode interface methods 21 nsresult Clone(mozilla::dom::NodeInfo*, nsINode** aResult) const override; 22 23 void UnbindFromTree(UnbindContext&) override; 24 25 protected: 26 virtual ~nsXMLElement() = default; 27 }; 28 29 #endif // nsXMLElement_h___