/work/obj-fuzz/dist/include/mozilla/dom/SVGFEDropShadowElement.h
Line | Count | Source (jump to first uncovered line) |
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/. */ |
6 | | |
7 | | #ifndef mozilla_dom_SVGFEDropShadowElement_h |
8 | | #define mozilla_dom_SVGFEDropShadowElement_h |
9 | | |
10 | | #include "nsSVGFilters.h" |
11 | | #include "nsSVGNumber2.h" |
12 | | #include "nsSVGNumberPair.h" |
13 | | #include "nsSVGString.h" |
14 | | |
15 | | nsresult NS_NewSVGFEDropShadowElement(nsIContent **aResult, |
16 | | already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo); |
17 | | |
18 | | namespace mozilla { |
19 | | namespace dom { |
20 | | |
21 | | typedef nsSVGFE SVGFEDropShadowElementBase; |
22 | | |
23 | | class SVGFEDropShadowElement : public SVGFEDropShadowElementBase |
24 | | { |
25 | | friend nsresult (::NS_NewSVGFEDropShadowElement(nsIContent **aResult, |
26 | | already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)); |
27 | | protected: |
28 | | explicit SVGFEDropShadowElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) |
29 | | : SVGFEDropShadowElementBase(std::move(aNodeInfo)) |
30 | 0 | { |
31 | 0 | } |
32 | | virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
33 | | |
34 | | public: |
35 | | virtual FilterPrimitiveDescription |
36 | | GetPrimitiveDescription(nsSVGFilterInstance* aInstance, |
37 | | const IntRect& aFilterSubregion, |
38 | | const nsTArray<bool>& aInputsAreTainted, |
39 | | nsTArray<RefPtr<SourceSurface>>& aInputImages) override; |
40 | | virtual bool AttributeAffectsRendering( |
41 | | int32_t aNameSpaceID, nsAtom* aAttribute) const override; |
42 | 0 | virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; } |
43 | | virtual void GetSourceImageNames(nsTArray<nsSVGStringInfo >& aSources) override; |
44 | | |
45 | | // nsIContent interface |
46 | | NS_IMETHOD_(bool) IsAttributeMapped(const nsAtom* aAttribute) const override; |
47 | | |
48 | | virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override; |
49 | | |
50 | | // WebIDL |
51 | | already_AddRefed<SVGAnimatedString> In1(); |
52 | | already_AddRefed<SVGAnimatedNumber> Dx(); |
53 | | already_AddRefed<SVGAnimatedNumber> Dy(); |
54 | | already_AddRefed<SVGAnimatedNumber> StdDeviationX(); |
55 | | already_AddRefed<SVGAnimatedNumber> StdDeviationY(); |
56 | | void SetStdDeviation(float stdDeviationX, float stdDeviationY); |
57 | | |
58 | | protected: |
59 | | virtual NumberAttributesInfo GetNumberInfo() override; |
60 | | virtual NumberPairAttributesInfo GetNumberPairInfo() override; |
61 | | virtual StringAttributesInfo GetStringInfo() override; |
62 | | |
63 | | enum { DX, DY }; |
64 | | nsSVGNumber2 mNumberAttributes[2]; |
65 | | static NumberInfo sNumberInfo[2]; |
66 | | |
67 | | enum { STD_DEV }; |
68 | | nsSVGNumberPair mNumberPairAttributes[1]; |
69 | | static NumberPairInfo sNumberPairInfo[1]; |
70 | | |
71 | | enum { RESULT, IN1 }; |
72 | | nsSVGString mStringAttributes[2]; |
73 | | static StringInfo sStringInfo[2]; |
74 | | }; |
75 | | |
76 | | } // namespace dom |
77 | | } // namespace mozilla |
78 | | |
79 | | #endif // mozilla_dom_SVGFEDropShadowElement_h |