LCOV - code coverage report
Current view: top level - dom/svg - SVGFEDropShadowElement.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_SVGFEDropShadowElement_h
       8             : #define mozilla_dom_SVGFEDropShadowElement_h
       9             : 
      10             : #include "nsSVGFilters.h"
      11             : #include "nsSVGNumber2.h"
      12             : #include "nsSVGNumberPair.h"
      13             : #include "nsSVGString.h"
      14             : 
      15             : nsresult NS_NewSVGFEDropShadowElement(nsIContent **aResult,
      16             :                                       already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21             : typedef nsSVGFE SVGFEDropShadowElementBase;
      22             : 
      23           0 : class SVGFEDropShadowElement : public SVGFEDropShadowElementBase
      24             : {
      25             :   friend nsresult (::NS_NewSVGFEDropShadowElement(nsIContent **aResult,
      26             :                                                   already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      27             : protected:
      28           0 :   explicit SVGFEDropShadowElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      29           0 :     : SVGFEDropShadowElementBase(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             :   // nsIContent interface
      46             :   NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const override;
      47             : 
      48             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      49             :                          bool aPreallocateChildren) const override;
      50             : 
      51             :   // WebIDL
      52             :   already_AddRefed<SVGAnimatedString> In1();
      53             :   already_AddRefed<SVGAnimatedNumber> Dx();
      54             :   already_AddRefed<SVGAnimatedNumber> Dy();
      55             :   already_AddRefed<SVGAnimatedNumber> StdDeviationX();
      56             :   already_AddRefed<SVGAnimatedNumber> StdDeviationY();
      57             :   void SetStdDeviation(float stdDeviationX, float stdDeviationY);
      58             : 
      59             : protected:
      60             :   virtual NumberAttributesInfo GetNumberInfo() override;
      61             :   virtual NumberPairAttributesInfo GetNumberPairInfo() override;
      62             :   virtual StringAttributesInfo GetStringInfo() override;
      63             : 
      64             :   enum { DX, DY };
      65             :   nsSVGNumber2 mNumberAttributes[2];
      66             :   static NumberInfo sNumberInfo[2];
      67             : 
      68             :   enum { STD_DEV };
      69             :   nsSVGNumberPair mNumberPairAttributes[1];
      70             :   static NumberPairInfo sNumberPairInfo[1];
      71             : 
      72             :   enum { RESULT, IN1 };
      73             :   nsSVGString mStringAttributes[2];
      74             :   static StringInfo sStringInfo[2];
      75             : };
      76             : 
      77             : } // namespace dom
      78             : } // namespace mozilla
      79             : 
      80             : #endif // mozilla_dom_SVGFEDropShadowElement_h

Generated by: LCOV version 1.13