Bug 1756164: part 2) Document the order of the external clipboard formats and remove...
[gecko.git] / dom / xml / nsXMLElement.h
blobe401965fff58723de8689226935fec9423136f3f
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/. */
7 #ifndef nsXMLElement_h___
8 #define nsXMLElement_h___
10 #include "mozilla/Attributes.h"
11 #include "mozilla/dom/Element.h"
12 #include "mozilla/dom/DOMRect.h"
14 class nsXMLElement : public mozilla::dom::Element {
15 public:
16 explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
17 : mozilla::dom::Element(std::move(aNodeInfo)) {}
19 // nsISupports
20 NS_INLINE_DECL_REFCOUNTING_INHERITED(nsXMLElement, mozilla::dom::Element)
22 // nsINode interface methods
23 virtual nsresult Clone(mozilla::dom::NodeInfo*,
24 nsINode** aResult) const override;
26 virtual void UnbindFromTree(bool aNullParent = true) override;
28 protected:
29 virtual ~nsXMLElement() = default;
31 virtual JSObject* WrapNode(JSContext* aCx,
32 JS::Handle<JSObject*> aGivenProto) override;
35 #endif // nsXMLElement_h___