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