Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGFESpecularLightingElement.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_SVGFESpecularLightingElement_h
8
#define mozilla_dom_SVGFESpecularLightingElement_h
9
10
#include "nsSVGFilters.h"
11
12
nsresult NS_NewSVGFESpecularLightingElement(nsIContent **aResult,
13
                                            already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
14
15
namespace mozilla {
16
namespace dom {
17
18
//---------------------SpecularLighting------------------------
19
20
typedef nsSVGFELightingElement SVGFESpecularLightingElementBase;
21
22
class SVGFESpecularLightingElement : public SVGFESpecularLightingElementBase
23
{
24
  friend nsresult (::NS_NewSVGFESpecularLightingElement(nsIContent **aResult,
25
                                                        already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
26
protected:
27
  explicit SVGFESpecularLightingElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
28
    : SVGFESpecularLightingElementBase(std::move(aNodeInfo))
29
0
  {
30
0
  }
31
  virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
32
33
public:
34
  virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
35
36
  virtual FilterPrimitiveDescription
37
    GetPrimitiveDescription(nsSVGFilterInstance* aInstance,
38
                            const IntRect& aFilterSubregion,
39
                            const nsTArray<bool>& aInputsAreTainted,
40
                            nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
41
  virtual bool AttributeAffectsRendering(
42
          int32_t aNameSpaceID, nsAtom* aAttribute) const override;
43
44
  // WebIDL
45
  already_AddRefed<SVGAnimatedString> In1();
46
  already_AddRefed<SVGAnimatedNumber> SurfaceScale();
47
  already_AddRefed<SVGAnimatedNumber> SpecularConstant();
48
  already_AddRefed<SVGAnimatedNumber> SpecularExponent();
49
  already_AddRefed<SVGAnimatedNumber> KernelUnitLengthX();
50
  already_AddRefed<SVGAnimatedNumber> KernelUnitLengthY();
51
};
52
53
} // namespace dom
54
} // namespace mozilla
55
56
#endif // mozilla_dom_SVGFESpecularLightingElement_h