Bug 1635304 [wpt PR 23392] - Remove erroneous named properties object test, a=testonly
[gecko.git] / dom / svg / SVGElementFactory.h
blob28943fa3140c438e4a4726beed21607994c77d40
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 mozilla_dom_SVGElementFactory_h
8 #define mozilla_dom_SVGElementFactory_h
10 #include "nsError.h"
11 #include "mozilla/AlreadyAddRefed.h"
12 #include "mozilla/dom/FromParser.h"
13 #include "mozilla/dom/NodeInfo.h"
15 class nsAtom;
16 class nsIContent;
18 namespace mozilla {
19 namespace dom {
21 class SVGElementFactory {
22 public:
23 static void Init();
24 static void Shutdown();
27 typedef nsresult (*SVGContentCreatorFunction)(
28 nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
29 mozilla::dom::FromParser aFromParser);
31 } // namespace dom
32 } // namespace mozilla
34 #define SVG_TAG(_tag, _classname) \
35 nsresult NS_NewSVG##_classname##Element( \
36 nsIContent** aResult, \
37 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo, \
38 mozilla::dom::FromParser aFromParser);
40 #define SVG_FROM_PARSER_TAG(_tag, _classname) \
41 nsresult NS_NewSVG##_classname##Element( \
42 nsIContent** aResult, \
43 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo, \
44 mozilla::dom::FromParser aFromParser);
45 #include "mozilla/SVGTagList.h"
46 #undef SVG_TAG
47 #undef SVG_FROM_PARSER_TAG
49 nsresult NS_NewSVGUnknownElement(
50 nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
51 mozilla::dom::FromParser aFromParser);
53 #endif /* mozilla_dom_SVGElementFactory_h */