LCOV - code coverage report
Current view: top level - dom/svg - SVGFEBlendElement.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_SVGFEBlendElement_h
       8             : #define mozilla_dom_SVGFEBlendElement_h
       9             : 
      10             : #include "nsSVGFilters.h"
      11             : #include "nsSVGEnum.h"
      12             : 
      13             : nsresult NS_NewSVGFEBlendElement(nsIContent **aResult,
      14             :                                  already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      15             : namespace mozilla {
      16             : namespace dom {
      17             : 
      18             : typedef nsSVGFE SVGFEBlendElementBase;
      19             : 
      20           0 : class SVGFEBlendElement : public SVGFEBlendElementBase
      21             : {
      22             :   friend nsresult (::NS_NewSVGFEBlendElement(nsIContent **aResult,
      23             :                                              already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      24             : protected:
      25           0 :   explicit SVGFEBlendElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      26           0 :     : SVGFEBlendElementBase(aNodeInfo)
      27             :   {
      28           0 :   }
      29             :   virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
      30             : 
      31             : public:
      32             :   virtual FilterPrimitiveDescription
      33             :     GetPrimitiveDescription(nsSVGFilterInstance* aInstance,
      34             :                             const IntRect& aFilterSubregion,
      35             :                             const nsTArray<bool>& aInputsAreTainted,
      36             :                             nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
      37             :   virtual bool AttributeAffectsRendering(
      38             :           int32_t aNameSpaceID, nsIAtom* aAttribute) const override;
      39           0 :   virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; }
      40             :   virtual void GetSourceImageNames(nsTArray<nsSVGStringInfo>& aSources) override;
      41             : 
      42             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      43             :                          bool aPreallocateChildren) const override;
      44             : 
      45             :   // WebIDL
      46             :   already_AddRefed<SVGAnimatedString> In1();
      47             :   already_AddRefed<SVGAnimatedString> In2();
      48             :   already_AddRefed<SVGAnimatedEnumeration> Mode();
      49             : 
      50             : protected:
      51             : 
      52             :   virtual EnumAttributesInfo GetEnumInfo() override;
      53             :   virtual StringAttributesInfo GetStringInfo() override;
      54             : 
      55             :   enum { MODE };
      56             :   nsSVGEnum mEnumAttributes[1];
      57             :   static nsSVGEnumMapping sModeMap[];
      58             :   static EnumInfo sEnumInfo[1];
      59             : 
      60             :   enum { RESULT, IN1, IN2 };
      61             :   nsSVGString mStringAttributes[3];
      62             :   static StringInfo sStringInfo[3];
      63             : };
      64             : 
      65             : } // namespace dom
      66             : } // namespace mozilla
      67             : 
      68             : #endif // mozilla_dom_SVGFEBlendElement_h

Generated by: LCOV version 1.13