LCOV - code coverage report
Current view: top level - dom/svg - SVGFEFloodElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 7 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 6 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_SVGFEFloodElement_h
       8             : #define mozilla_dom_SVGFEFloodElement_h
       9             : 
      10             : #include "nsSVGFilters.h"
      11             : 
      12             : nsresult NS_NewSVGFEFloodElement(nsIContent **aResult,
      13             :                                  already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      14             : 
      15             : namespace mozilla {
      16             : namespace dom {
      17             : 
      18             : typedef nsSVGFE SVGFEFloodElementBase;
      19             : 
      20           0 : class SVGFEFloodElement : public SVGFEFloodElementBase
      21             : {
      22             :   friend nsresult (::NS_NewSVGFEFloodElement(nsIContent **aResult,
      23             :                                              already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      24             : protected:
      25           0 :   explicit SVGFEFloodElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      26           0 :     : SVGFEFloodElementBase(aNodeInfo)
      27             :   {
      28           0 :   }
      29             :   virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
      30             : 
      31             : public:
      32           0 :   virtual bool SubregionIsUnionOfRegions() override { return false; }
      33             : 
      34             :   virtual FilterPrimitiveDescription
      35             :     GetPrimitiveDescription(nsSVGFilterInstance* aInstance,
      36             :                             const IntRect& aFilterSubregion,
      37             :                             const nsTArray<bool>& aInputsAreTainted,
      38             :                             nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
      39           0 :   virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; }
      40             : 
      41             :   // nsIContent interface
      42             :   NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const override;
      43             : 
      44             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      45             :                          bool aPreallocateChildren) const override;
      46             : 
      47             : protected:
      48           0 :   virtual bool ProducesSRGB() override { return true; }
      49             : 
      50             :   virtual StringAttributesInfo GetStringInfo() override;
      51             : 
      52             :   enum { RESULT };
      53             :   nsSVGString mStringAttributes[1];
      54             :   static StringInfo sStringInfo[1];
      55             : };
      56             : 
      57             : } // namespace dom
      58             : } // namespace mozilla
      59             : 
      60             : #endif // mozilla_dom_SVGFEFloodElement_h

Generated by: LCOV version 1.13