Bug 1700051: part 46) Const-qualify `mozInlineSpellStatus::mAnchorRange`. r=smaug
[gecko.git] / dom / svg / SVGFEDropShadowElement.h
blob2b07dfa7c74d241a035112b4c8557b8b009596be
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_SVGFEDROPSHADOWELEMENT_H_
8 #define DOM_SVG_SVGFEDROPSHADOWELEMENT_H_
10 #include "SVGAnimatedNumber.h"
11 #include "SVGAnimatedNumberPair.h"
12 #include "SVGAnimatedString.h"
13 #include "mozilla/dom/SVGFilters.h"
15 nsresult NS_NewSVGFEDropShadowElement(
16 nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
18 namespace mozilla {
19 namespace dom {
21 using SVGFEDropShadowElementBase = SVGFE;
23 class SVGFEDropShadowElement : public SVGFEDropShadowElementBase {
24 friend nsresult(::NS_NewSVGFEDropShadowElement(
25 nsIContent** aResult,
26 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
28 protected:
29 explicit SVGFEDropShadowElement(
30 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
31 : SVGFEDropShadowElementBase(std::move(aNodeInfo)) {}
32 virtual JSObject* WrapNode(JSContext* aCx,
33 JS::Handle<JSObject*> aGivenProto) override;
35 public:
36 virtual FilterPrimitiveDescription GetPrimitiveDescription(
37 SVGFilterInstance* aInstance, const IntRect& aFilterSubregion,
38 const nsTArray<bool>& aInputsAreTainted,
39 nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
40 virtual bool AttributeAffectsRendering(int32_t aNameSpaceID,
41 nsAtom* aAttribute) const override;
42 virtual SVGAnimatedString& GetResultImageName() override {
43 return mStringAttributes[RESULT];
45 virtual void GetSourceImageNames(nsTArray<SVGStringInfo>& aSources) override;
47 // nsIContent interface
48 NS_IMETHOD_(bool) IsAttributeMapped(const nsAtom* aAttribute) const override;
50 virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
52 // WebIDL
53 already_AddRefed<DOMSVGAnimatedString> In1();
54 already_AddRefed<DOMSVGAnimatedNumber> Dx();
55 already_AddRefed<DOMSVGAnimatedNumber> Dy();
56 already_AddRefed<DOMSVGAnimatedNumber> StdDeviationX();
57 already_AddRefed<DOMSVGAnimatedNumber> StdDeviationY();
58 void SetStdDeviation(float stdDeviationX, float stdDeviationY);
60 protected:
61 virtual NumberAttributesInfo GetNumberInfo() override;
62 virtual NumberPairAttributesInfo GetNumberPairInfo() override;
63 virtual StringAttributesInfo GetStringInfo() override;
65 enum { DX, DY };
66 SVGAnimatedNumber mNumberAttributes[2];
67 static NumberInfo sNumberInfo[2];
69 enum { STD_DEV };
70 SVGAnimatedNumberPair mNumberPairAttributes[1];
71 static NumberPairInfo sNumberPairInfo[1];
73 enum { RESULT, IN1 };
74 SVGAnimatedString mStringAttributes[2];
75 static StringInfo sStringInfo[2];
78 } // namespace dom
79 } // namespace mozilla
81 #endif // DOM_SVG_SVGFEDROPSHADOWELEMENT_H_