LCOV - code coverage report
Current view: top level - dom/svg - SVGFEGaussianBlurElement.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_SVGFEGaussianBlurElement_h
       8             : #define mozilla_dom_SVGFEGaussianBlurElement_h
       9             : 
      10             : #include "nsSVGFilters.h"
      11             : #include "nsSVGNumberPair.h"
      12             : #include "nsSVGString.h"
      13             : 
      14             : nsresult NS_NewSVGFEGaussianBlurElement(nsIContent **aResult,
      15             :                                         already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      16             : 
      17             : namespace mozilla {
      18             : namespace dom {
      19             : 
      20             : typedef nsSVGFE SVGFEGaussianBlurElementBase;
      21             : 
      22           0 : class SVGFEGaussianBlurElement : public SVGFEGaussianBlurElementBase
      23             : {
      24             :   friend nsresult (::NS_NewSVGFEGaussianBlurElement(nsIContent **aResult,
      25             :                                                     already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      26             : protected:
      27           0 :   explicit SVGFEGaussianBlurElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      28           0 :     : SVGFEGaussianBlurElementBase(aNodeInfo)
      29             :   {
      30           0 :   }
      31             :   virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      32             : 
      33             : public:
      34             :   virtual FilterPrimitiveDescription
      35             :     GetPrimitiveDescription(nsSVGFilterInstance* aInstance,
      36             :                             const IntRect& aFilterSubregion,
      37             :                             const nsTArray<bool>& aInputsAreTainted,
      38             :                             nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
      39             :   virtual bool AttributeAffectsRendering(
      40             :           int32_t aNameSpaceID, nsIAtom* aAttribute) const override;
      41           0 :   virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; }
      42             :   virtual void GetSourceImageNames(nsTArray<nsSVGStringInfo >& aSources) override;
      43             : 
      44             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      45             :                          bool aPreallocateChildren) const override;
      46             : 
      47             :   // WebIDL
      48             :   already_AddRefed<SVGAnimatedString> In1();
      49             :   already_AddRefed<SVGAnimatedNumber> StdDeviationX();
      50             :   already_AddRefed<SVGAnimatedNumber> StdDeviationY();
      51             :   void SetStdDeviation(float stdDeviationX, float stdDeviationY);
      52             : 
      53             : protected:
      54             :   virtual NumberPairAttributesInfo GetNumberPairInfo() override;
      55             :   virtual StringAttributesInfo GetStringInfo() override;
      56             : 
      57             :   enum { STD_DEV };
      58             :   nsSVGNumberPair mNumberPairAttributes[1];
      59             :   static NumberPairInfo sNumberPairInfo[1];
      60             : 
      61             :   enum { RESULT, IN1 };
      62             :   nsSVGString mStringAttributes[2];
      63             :   static StringInfo sStringInfo[2];
      64             : };
      65             : 
      66             : } // namespace dom
      67             : } // namespace mozilla
      68             : 
      69             : #endif // mozilla_dom_SVGFEGaussianBlurElement_h

Generated by: LCOV version 1.13