Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / dom / svg / SVGDescElement.h
blob0769db951955c21504884aa953890f8b8c80cc92
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 DOM_SVG_SVGDESCELEMENT_H_
8 #define DOM_SVG_SVGDESCELEMENT_H_
10 #include "mozilla/Attributes.h"
11 #include "SVGElement.h"
13 nsresult NS_NewSVGDescElement(
14 nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
16 namespace mozilla::dom {
18 using SVGDescElementBase = SVGElement;
20 class SVGDescElement final : public SVGDescElementBase {
21 protected:
22 friend nsresult(::NS_NewSVGDescElement(
23 nsIContent** aResult,
24 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
25 explicit SVGDescElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
27 JSObject* WrapNode(JSContext* aCx,
28 JS::Handle<JSObject*> aGivenProto) override;
30 public:
31 nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
34 } // namespace mozilla::dom
36 #endif // DOM_SVG_SVGDESCELEMENT_H_