2015-05-03 12:32:37 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsXMLElement_h___
|
|
|
|
#define nsXMLElement_h___
|
|
|
|
|
2013-05-29 13:43:41 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsIDOMElement.h"
|
2013-10-02 13:09:18 -07:00
|
|
|
#include "mozilla/dom/ElementInlines.h"
|
2013-09-20 03:21:03 -07:00
|
|
|
#include "mozilla/dom/DOMRect.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-11-14 14:10:08 -08:00
|
|
|
class nsXMLElement : public mozilla::dom::Element,
|
2007-03-22 10:30:00 -07:00
|
|
|
public nsIDOMElement
|
|
|
|
{
|
|
|
|
public:
|
2014-09-01 17:49:25 -07: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
|
|
|
{
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
// nsIDOMNode
|
2012-10-09 05:31:24 -07:00
|
|
|
NS_FORWARD_NSIDOMNODE_TO_NSINODE
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// nsIDOMElement
|
2012-10-16 04:51:00 -07:00
|
|
|
NS_FORWARD_NSIDOMELEMENT_TO_GENERIC
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// nsINode interface methods
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const override;
|
2010-06-03 18:09:20 -07:00
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual nsIDOMNode* AsDOMNode() override { return this; }
|
2012-04-25 06:47:30 -07:00
|
|
|
|
2012-11-22 03:09:57 -08:00
|
|
|
protected:
|
2014-07-08 14:23:16 -07:00
|
|
|
virtual ~nsXMLElement() {}
|
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsXMLElement_h___
|