LCOV - code coverage report
Current view: top level - dom/svg - SVGFETurbulenceElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 6 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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_SVGFETurbulenceElement_h
       8             : #define mozilla_dom_SVGFETurbulenceElement_h
       9             : 
      10             : #include "nsSVGEnum.h"
      11             : #include "nsSVGFilters.h"
      12             : #include "nsSVGNumber2.h"
      13             : #include "nsSVGInteger.h"
      14             : #include "nsSVGString.h"
      15             : 
      16             : nsresult NS_NewSVGFETurbulenceElement(nsIContent **aResult,
      17             :                                       already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      18             : 
      19             : namespace mozilla {
      20             : namespace dom {
      21             : 
      22             : typedef nsSVGFE SVGFETurbulenceElementBase;
      23             : 
      24           0 : class SVGFETurbulenceElement : public SVGFETurbulenceElementBase
      25             : {
      26             :   friend nsresult (::NS_NewSVGFETurbulenceElement(nsIContent **aResult,
      27             :                                                   already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      28             : protected:
      29           0 :   explicit SVGFETurbulenceElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      30           0 :     : SVGFETurbulenceElementBase(aNodeInfo)
      31             :   {
      32           0 :   }
      33             :   virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      34             : 
      35             : public:
      36           0 :   virtual bool SubregionIsUnionOfRegions() override { return false; }
      37             : 
      38             :   virtual FilterPrimitiveDescription
      39             :     GetPrimitiveDescription(nsSVGFilterInstance* aInstance,
      40             :                             const IntRect& aFilterSubregion,
      41             :                             const nsTArray<bool>& aInputsAreTainted,
      42             :                             nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
      43             :   virtual bool AttributeAffectsRendering(
      44             :           int32_t aNameSpaceID, nsIAtom* aAttribute) const override;
      45           0 :   virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; }
      46             : 
      47             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      48             :                          bool aPreallocateChildren) const override;
      49             : 
      50             :   // WebIDL
      51             :   already_AddRefed<SVGAnimatedNumber> BaseFrequencyX();
      52             :   already_AddRefed<SVGAnimatedNumber> BaseFrequencyY();
      53             :   already_AddRefed<SVGAnimatedInteger> NumOctaves();
      54             :   already_AddRefed<SVGAnimatedNumber> Seed();
      55             :   already_AddRefed<SVGAnimatedEnumeration> StitchTiles();
      56             :   already_AddRefed<SVGAnimatedEnumeration> Type();
      57             : 
      58             : protected:
      59             :   virtual NumberAttributesInfo GetNumberInfo() override;
      60             :   virtual NumberPairAttributesInfo GetNumberPairInfo() override;
      61             :   virtual IntegerAttributesInfo GetIntegerInfo() override;
      62             :   virtual EnumAttributesInfo GetEnumInfo() override;
      63             :   virtual StringAttributesInfo GetStringInfo() override;
      64             : 
      65             :   enum { SEED }; // floating point seed?!
      66             :   nsSVGNumber2 mNumberAttributes[1];
      67             :   static NumberInfo sNumberInfo[1];
      68             : 
      69             :   enum { BASE_FREQ };
      70             :   nsSVGNumberPair mNumberPairAttributes[1];
      71             :   static NumberPairInfo sNumberPairInfo[1];
      72             : 
      73             :   enum { OCTAVES };
      74             :   nsSVGInteger mIntegerAttributes[1];
      75             :   static IntegerInfo sIntegerInfo[1];
      76             : 
      77             :   enum { TYPE, STITCHTILES };
      78             :   nsSVGEnum mEnumAttributes[2];
      79             :   static nsSVGEnumMapping sTypeMap[];
      80             :   static nsSVGEnumMapping sStitchTilesMap[];
      81             :   static EnumInfo sEnumInfo[2];
      82             : 
      83             :   enum { RESULT };
      84             :   nsSVGString mStringAttributes[1];
      85             :   static StringInfo sStringInfo[1];
      86             : };
      87             : 
      88             : } // namespace dom
      89             : } // namespace mozilla
      90             : 
      91             : #endif // mozilla_dom_SVGFETurbulenceElement_h

Generated by: LCOV version 1.13