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
{
16 explicit nsXMLElement(already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
)
17 : mozilla::dom::Element(std::move(aNodeInfo
)) {}
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
;
29 virtual ~nsXMLElement() = default;
31 virtual JSObject
* WrapNode(JSContext
* aCx
,
32 JS::Handle
<JSObject
*> aGivenProto
) override
;
35 #endif // nsXMLElement_h___