/work/obj-fuzz/dist/include/mozilla/dom/SVGFEMergeElement.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_SVGFEMergeElement_h |
8 | | #define mozilla_dom_SVGFEMergeElement_h |
9 | | |
10 | | #include "nsSVGFilters.h" |
11 | | |
12 | | nsresult NS_NewSVGFEMergeElement(nsIContent **aResult, |
13 | | already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo); |
14 | | |
15 | | namespace mozilla { |
16 | | namespace dom { |
17 | | |
18 | | typedef nsSVGFE SVGFEMergeElementBase; |
19 | | |
20 | | class SVGFEMergeElement : public SVGFEMergeElementBase |
21 | | { |
22 | | friend nsresult (::NS_NewSVGFEMergeElement(nsIContent **aResult, |
23 | | already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)); |
24 | | protected: |
25 | | explicit SVGFEMergeElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) |
26 | | : SVGFEMergeElementBase(std::move(aNodeInfo)) |
27 | 0 | { |
28 | 0 | } |
29 | | virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override; |
30 | | |
31 | | public: |
32 | | virtual FilterPrimitiveDescription |
33 | | GetPrimitiveDescription(nsSVGFilterInstance* aInstance, |
34 | | const IntRect& aFilterSubregion, |
35 | | const nsTArray<bool>& aInputsAreTainted, |
36 | | nsTArray<RefPtr<SourceSurface>>& aInputImages) override; |
37 | 0 | virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; } |
38 | | virtual void GetSourceImageNames(nsTArray<nsSVGStringInfo>& aSources) override; |
39 | | |
40 | | // nsIContent |
41 | | virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override; |
42 | | protected: |
43 | | virtual StringAttributesInfo GetStringInfo() override; |
44 | | |
45 | | enum { RESULT }; |
46 | | nsSVGString mStringAttributes[1]; |
47 | | static StringInfo sStringInfo[1]; |
48 | | }; |
49 | | |
50 | | } // namespace dom |
51 | | } // namespace mozilla |
52 | | |
53 | | #endif // mozilla_dom_SVGFEMergeElement_h |