LCOV - code coverage report
Current view: top level - dom/svg - SVGFEMorphologyElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 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_SVGFEMorphologyElement_h
       8             : #define mozilla_dom_SVGFEMorphologyElement_h
       9             : 
      10             : #include "nsSVGEnum.h"
      11             : #include "nsSVGFilters.h"
      12             : #include "nsSVGNumberPair.h"
      13             : #include "nsSVGString.h"
      14             : 
      15             : nsresult NS_NewSVGFEMorphologyElement(nsIContent **aResult,
      16             :                                       already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21             : typedef nsSVGFE SVGFEMorphologyElementBase;
      22             : 
      23           0 : class SVGFEMorphologyElement : public SVGFEMorphologyElementBase
      24             : {
      25             :   friend nsresult (::NS_NewSVGFEMorphologyElement(nsIContent **aResult,
      26             :                                                   already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      27             : protected:
      28           0 :   explicit SVGFEMorphologyElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      29           0 :     : SVGFEMorphologyElementBase(aNodeInfo)
      30             :   {
      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, nsIAtom* aAttribute) const override;
      42           0 :   virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; }
      43             :   virtual void GetSourceImageNames(nsTArray<nsSVGStringInfo>& aSources) override;
      44             : 
      45             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      46             :                          bool aPreallocateChildren) const override;
      47             : 
      48             :   // WebIDL
      49             :   already_AddRefed<SVGAnimatedString> In1();
      50             :   already_AddRefed<SVGAnimatedEnumeration> Operator();
      51             :   already_AddRefed<SVGAnimatedNumber> RadiusX();
      52             :   already_AddRefed<SVGAnimatedNumber> RadiusY();
      53             :   void SetRadius(float rx, float ry);
      54             : 
      55             : protected:
      56             :   void GetRXY(int32_t *aRX, int32_t *aRY, const nsSVGFilterInstance& aInstance);
      57             : 
      58             :   virtual NumberPairAttributesInfo GetNumberPairInfo() override;
      59             :   virtual EnumAttributesInfo GetEnumInfo() override;
      60             :   virtual StringAttributesInfo GetStringInfo() override;
      61             : 
      62             :   enum { RADIUS };
      63             :   nsSVGNumberPair mNumberPairAttributes[1];
      64             :   static NumberPairInfo sNumberPairInfo[1];
      65             : 
      66             :   enum { OPERATOR };
      67             :   nsSVGEnum mEnumAttributes[1];
      68             :   static nsSVGEnumMapping sOperatorMap[];
      69             :   static EnumInfo sEnumInfo[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_SVGFEMorphologyElement_h

Generated by: LCOV version 1.13