1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_dom_SVGMetadataElement_h
7 #define mozilla_dom_SVGMetadataElement_h
9 #include "mozilla/Attributes.h"
10 #include "nsSVGElement.h"
12 nsresult
NS_NewSVGMetadataElement(nsIContent
**aResult
,
13 already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
);
15 typedef nsSVGElement SVGMetadataElementBase
;
20 class SVGMetadataElement MOZ_FINAL
: public SVGMetadataElementBase
23 friend nsresult (::NS_NewSVGMetadataElement(nsIContent
**aResult
,
24 already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
));
25 explicit SVGMetadataElement(already_AddRefed
<mozilla::dom::NodeInfo
>& aNodeInfo
);
27 virtual JSObject
* WrapNode(JSContext
*aCx
) MOZ_OVERRIDE
;
31 virtual nsresult
Clone(mozilla::dom::NodeInfo
*aNodeInfo
, nsINode
**aResult
) const MOZ_OVERRIDE
;
35 } // namespace mozilla
37 #endif // mozilla_dom_SVGMetadataElement_h