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"
|
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
|
|
|
|
2018-05-30 05:58:51 +03:00
|
|
|
class nsXMLElement : public mozilla::dom::Element
|
1998-11-12 01:06:16 +03:00
|
|
|
{
|
|
|
|
public:
|
2018-09-21 23:45:49 +03:00
|
|
|
explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
|
|
|
|
: mozilla::dom::Element(std::move(aNodeInfo))
|
2009-10-25 07:33:47 +03:00
|
|
|
{
|
|
|
|
}
|
1998-11-12 01:06:16 +03:00
|
|
|
|
|
|
|
// nsISupports
|
2018-05-30 05:58:51 +03:00
|
|
|
NS_INLINE_DECL_REFCOUNTING_INHERITED(nsXMLElement, mozilla::dom::Element)
|
2000-12-23 13:56:31 +03:00
|
|
|
|
2007-01-04 13:53:59 +03:00
|
|
|
// nsINode interface methods
|
2018-08-09 02:58:44 +03:00
|
|
|
virtual nsresult Clone(mozilla::dom::NodeInfo*, nsINode **aResult) const override;
|
2010-06-04 05:09:20 +04:00
|
|
|
|
2017-04-16 18:29:49 +03:00
|
|
|
virtual void UnbindFromTree(bool aDeep = true,
|
|
|
|
bool aNullParent = true) override;
|
|
|
|
|
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___
|