Bumping manifests a=b2g-bump
[gecko.git] / dom / xml / nsXMLElement.h
blob635339a4fe7aa5a484d43ea445490f243395a274
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,
15 public nsIDOMElement
17 public:
18 explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
19 : mozilla::dom::Element(aNodeInfo)
23 // nsISupports
24 NS_DECL_ISUPPORTS_INHERITED
26 // nsIDOMNode
27 NS_FORWARD_NSIDOMNODE_TO_NSINODE
29 // nsIDOMElement
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; }
37 protected:
38 virtual ~nsXMLElement() {}
40 virtual JSObject* WrapNode(JSContext *aCx) MOZ_OVERRIDE;
43 #endif // nsXMLElement_h___