2015-05-03 22:32:37 +03: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 15:12:37 +04: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-12 01:06:16 +03:00
|
|
|
|
|
|
|
#ifndef nsXMLElement_h___
|
|
|
|
#define nsXMLElement_h___
|
|
|
|
|
2013-05-30 00:43:41 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1998-11-12 01:06:16 +03:00
|
|
|
#include "nsIDOMElement.h"
|
2016-12-13 10:11:04 +03:00
|
|
|
#include "mozilla/dom/Element.h"
|
2013-09-20 14:21:03 +04:00
|
|
|
#include "mozilla/dom/DOMRect.h"
|
1998-11-12 01:06:16 +03:00
|
|
|
|
2012-11-15 02:10:08 +04:00
|
|
|
class nsXMLElement : public mozilla::dom::Element,
|
2000-12-23 13:56:31 +03:00
|
|
|
public nsIDOMElement
|
1998-11-12 01:06:16 +03:00
|
|
|
{
|
|
|
|
public:
|
2014-09-02 04:49:25 +04:00
|
|
|
explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
|
2012-11-15 02:10:08 +04:00
|
|
|
: mozilla::dom::Element(aNodeInfo)
|
2009-10-25 07:33:47 +03:00
|
|
|
{
|
|
|
|
}
|
1998-11-12 01:06:16 +03:00
|
|
|
|
|
|
|
// nsISupports
|
2000-12-23 13:56:31 +03:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
1998-11-12 01:06:16 +03:00
|
|
|
// nsIDOMNode
|
2012-10-09 16:31:24 +04:00
|
|
|
NS_FORWARD_NSIDOMNODE_TO_NSINODE
|
2000-12-23 13:56:31 +03:00
|
|
|
|
1998-11-12 01:06:16 +03:00
|
|
|
// nsIDOMElement
|
2012-10-16 15:51:00 +04:00
|
|
|
NS_FORWARD_NSIDOMELEMENT_TO_GENERIC
|
1998-11-12 01:06:16 +03:00
|
|
|
|
2007-01-04 13:53:59 +03:00
|
|
|
// nsINode interface methods
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const override;
|
2010-06-04 05:09:20 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual nsIDOMNode* AsDOMNode() override { return this; }
|
2012-04-25 17:47:30 +04:00
|
|
|
|
2012-11-22 15:09:57 +04:00
|
|
|
protected:
|
2014-07-09 01:23:16 +04:00
|
|
|
virtual ~nsXMLElement() {}
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
|
1998-11-12 01:06:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsXMLElement_h___
|