2001-09-25 01:32:19 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 12:12:37 +01:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1998-11-11 22:06:16 +00:00
|
|
|
|
|
|
|
#ifndef nsXMLElement_h___
|
|
|
|
#define nsXMLElement_h___
|
|
|
|
|
2013-05-29 13:43:41 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
1998-11-11 22:06:16 +00:00
|
|
|
#include "nsIDOMElement.h"
|
2013-10-02 16:09:18 -04:00
|
|
|
#include "mozilla/dom/ElementInlines.h"
|
2013-09-20 22:21:03 +12:00
|
|
|
#include "mozilla/dom/DOMRect.h"
|
1998-11-11 22:06:16 +00:00
|
|
|
|
2012-11-14 14:10:08 -08:00
|
|
|
class nsXMLElement : public mozilla::dom::Element,
|
2000-12-23 10:56:31 +00:00
|
|
|
public nsIDOMElement
|
1998-11-11 22:06:16 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-01 20:49:25 -04:00
|
|
|
explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
|
2012-11-14 14:10:08 -08:00
|
|
|
: mozilla::dom::Element(aNodeInfo)
|
2009-10-24 21:33:47 -07:00
|
|
|
{
|
|
|
|
}
|
1998-11-11 22:06:16 +00:00
|
|
|
|
|
|
|
// nsISupports
|
2000-12-23 10:56:31 +00:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
1998-11-11 22:06:16 +00:00
|
|
|
// nsIDOMNode
|
2012-10-09 14:31:24 +02:00
|
|
|
NS_FORWARD_NSIDOMNODE_TO_NSINODE
|
2000-12-23 10:56:31 +00:00
|
|
|
|
1998-11-11 22:06:16 +00:00
|
|
|
// nsIDOMElement
|
2012-10-16 13:51:00 +02:00
|
|
|
NS_FORWARD_NSIDOMELEMENT_TO_GENERIC
|
1998-11-11 22:06:16 +00:00
|
|
|
|
2007-01-04 10:53:59 +00:00
|
|
|
// nsINode interface methods
|
2014-06-19 19:01:40 -07:00
|
|
|
virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const MOZ_OVERRIDE;
|
2010-06-03 18:09:20 -07:00
|
|
|
|
2013-05-29 13:43:41 -07:00
|
|
|
virtual nsIDOMNode* AsDOMNode() MOZ_OVERRIDE { return this; }
|
2012-04-25 16:47:30 +03:00
|
|
|
|
2012-11-22 12:09:57 +01:00
|
|
|
protected:
|
2014-07-08 17:23:16 -04:00
|
|
|
virtual ~nsXMLElement() {}
|
|
|
|
|
2014-04-08 18:27:17 -04:00
|
|
|
virtual JSObject* WrapNode(JSContext *aCx) MOZ_OVERRIDE;
|
1998-11-11 22:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsXMLElement_h___
|