Bug 1890793: Assert CallArgs::newTarget is not gray. r=spidermonkey-reviewers,sfink...
[gecko.git] / dom / xml / nsXMLElement.h
blob01b526f451b4f524e807a8ed16b90def0ee257bb
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsXMLElement_h___
8 #define nsXMLElement_h___
10 #include "mozilla/Attributes.h"
11 #include "mozilla/dom/Element.h"
12 #include "mozilla/dom/DOMRect.h"
14 class nsXMLElement : public mozilla::dom::Element {
15 public:
16 explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
17 : mozilla::dom::Element(std::move(aNodeInfo)) {}
19 // nsISupports
20 NS_INLINE_DECL_REFCOUNTING_INHERITED(nsXMLElement, mozilla::dom::Element)
22 // nsINode interface methods
23 virtual nsresult Clone(mozilla::dom::NodeInfo*,
24 nsINode** aResult) const override;
26 virtual void UnbindFromTree(UnbindContext&) override;
28 protected:
29 virtual ~nsXMLElement() = default;
31 virtual JSObject* WrapNode(JSContext* aCx,
32 JS::Handle<JSObject*> aGivenProto) override;
35 #endif // nsXMLElement_h___