Merge mozilla-central to autoland on a CLOSED TREE
[gecko.git] / dom / svg / SVGFEMergeNodeElement.h
blob354767e5e190b96f76777a0ffaa52de3f0377faa
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_SVGFEMERGENODEELEMENT_H_
8 #define DOM_SVG_SVGFEMERGENODEELEMENT_H_
10 #include "mozilla/dom/SVGFilters.h"
12 nsresult NS_NewSVGFEMergeNodeElement(
13 nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
15 namespace mozilla::dom {
17 using SVGFEMergeNodeElementBase = SVGFEUnstyledElement;
19 class SVGFEMergeNodeElement final : public SVGFEMergeNodeElementBase {
20 friend nsresult(::NS_NewSVGFEMergeNodeElement(
21 nsIContent** aResult,
22 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
24 protected:
25 explicit SVGFEMergeNodeElement(
26 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
27 : SVGFEMergeNodeElementBase(std::move(aNodeInfo)) {}
28 JSObject* WrapNode(JSContext* aCx,
29 JS::Handle<JSObject*> aGivenProto) override;
31 public:
32 NS_IMPL_FROMNODE_WITH_TAG(SVGFEMergeNodeElement, kNameSpaceID_SVG,
33 feMergeNode)
35 nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
37 bool AttributeAffectsRendering(int32_t aNameSpaceID,
38 nsAtom* aAttribute) const override;
40 const SVGAnimatedString* GetIn1() { return &mStringAttributes[IN1]; }
42 // WebIDL
43 already_AddRefed<DOMSVGAnimatedString> In1();
45 protected:
46 StringAttributesInfo GetStringInfo() override;
48 enum { IN1 };
49 SVGAnimatedString mStringAttributes[1];
50 static StringInfo sStringInfo[1];
53 } // namespace mozilla::dom
55 #endif // DOM_SVG_SVGFEMERGENODEELEMENT_H_