Bug 1663089 [wpt PR 25399] - idle-detection: Implement requestPermission() method...
[gecko.git] / dom / svg / SVGFEMergeNodeElement.h
blob9d870db8ef8f212143e617826f2935c3dfb081ee
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 {
16 namespace dom {
18 using SVGFEMergeNodeElementBase = SVGFEUnstyledElement;
20 class SVGFEMergeNodeElement : public SVGFEMergeNodeElementBase {
21 friend nsresult(::NS_NewSVGFEMergeNodeElement(
22 nsIContent** aResult,
23 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
25 protected:
26 explicit SVGFEMergeNodeElement(
27 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
28 : SVGFEMergeNodeElementBase(std::move(aNodeInfo)) {}
29 virtual JSObject* WrapNode(JSContext* aCx,
30 JS::Handle<JSObject*> aGivenProto) override;
32 public:
33 virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
35 virtual bool AttributeAffectsRendering(int32_t aNameSpaceID,
36 nsAtom* aAttribute) const override;
38 const SVGAnimatedString* GetIn1() { return &mStringAttributes[IN1]; }
40 // WebIDL
41 already_AddRefed<DOMSVGAnimatedString> In1();
43 protected:
44 virtual StringAttributesInfo GetStringInfo() override;
46 enum { IN1 };
47 SVGAnimatedString mStringAttributes[1];
48 static StringInfo sStringInfo[1];
51 } // namespace dom
52 } // namespace mozilla
54 #endif // DOM_SVG_SVGFEMERGENODEELEMENT_H_