1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsXMLElement_h___
7 #define nsXMLElement_h___
9 #include "mozilla/Attributes.h"
10 #include "nsIDOMElement.h"
11 #include "mozilla/dom/ElementInlines.h"
12 #include "mozilla/dom/DOMRect.h"
14 class nsXMLElement
: public mozilla::dom::Element
,
18 explicit nsXMLElement(already_AddRefed
<mozilla::dom::NodeInfo
>& aNodeInfo
)
19 : mozilla::dom::Element(aNodeInfo
)
24 NS_DECL_ISUPPORTS_INHERITED
27 NS_FORWARD_NSIDOMNODE_TO_NSINODE
30 NS_FORWARD_NSIDOMELEMENT_TO_GENERIC
32 // nsINode interface methods
33 virtual nsresult
Clone(mozilla::dom::NodeInfo
*aNodeInfo
, nsINode
**aResult
) const MOZ_OVERRIDE
;
35 virtual nsIDOMNode
* AsDOMNode() MOZ_OVERRIDE
{ return this; }
38 virtual ~nsXMLElement() {}
40 virtual JSObject
* WrapNode(JSContext
*aCx
) MOZ_OVERRIDE
;
43 #endif // nsXMLElement_h___