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
11 #include "mozilla/AlreadyAddRefed.h"
12 #include "mozilla/dom/FromParser.h"
13 #include "mozilla/dom/NodeInfo.h"
21 class SVGElementFactory
{
24 static void Shutdown();
27 typedef nsresult (*SVGContentCreatorFunction
)(
28 nsIContent
** aResult
, already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
,
29 mozilla::dom::FromParser aFromParser
);
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"
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 */