LCOV - code coverage report
Current view: directory - content/svg/content/src - nsSVGFilterElement.h (source / functions) Found Hit Coverage
Test: app.info Lines: 4 0 0.0 %
Date: 2012-06-02 Functions: 62 0 0.0 %

       1                 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2                 : /* ***** BEGIN LICENSE BLOCK *****
       3                 :  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
       4                 :  *
       5                 :  * The contents of this file are subject to the Mozilla Public License Version
       6                 :  * 1.1 (the "License"); you may not use this file except in compliance with
       7                 :  * the License. You may obtain a copy of the License at
       8                 :  * http://www.mozilla.org/MPL/
       9                 :  *
      10                 :  * Software distributed under the License is distributed on an "AS IS" basis,
      11                 :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12                 :  * for the specific language governing rights and limitations under the
      13                 :  * License.
      14                 :  *
      15                 :  * The Original Code is the Mozilla SVG project.
      16                 :  *
      17                 :  * The Initial Developer of the Original Code is IBM Corporation.
      18                 :  * Portions created by the Initial Developer are Copyright (C) 2005
      19                 :  * the Initial Developer. All Rights Reserved.
      20                 :  *
      21                 :  * Contributor(s):
      22                 :  *
      23                 :  * Alternatively, the contents of this file may be used under the terms of
      24                 :  * either of the GNU General Public License Version 2 or later (the "GPL"),
      25                 :  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
      26                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
      27                 :  * of those above. If you wish to allow use of your version of this file only
      28                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
      29                 :  * use your version of this file under the terms of the MPL, indicate your
      30                 :  * decision by deleting the provisions above and replace them with the notice
      31                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
      32                 :  * the provisions above, a recipient may use your version of this file under
      33                 :  * the terms of any one of the MPL, the GPL or the LGPL.
      34                 :  *
      35                 :  * ***** END LICENSE BLOCK ***** */
      36                 : 
      37                 : #ifndef __NS_SVGFILTERELEMENT_H__
      38                 : #define __NS_SVGFILTERELEMENT_H__
      39                 : 
      40                 : #include "DOMSVGTests.h"
      41                 : #include "nsIDOMSVGFilterElement.h"
      42                 : #include "nsIDOMSVGUnitTypes.h"
      43                 : #include "nsIDOMSVGURIReference.h"
      44                 : #include "nsSVGEnum.h"
      45                 : #include "nsSVGGraphicElement.h"
      46                 : #include "nsSVGIntegerPair.h"
      47                 : #include "nsSVGLength2.h"
      48                 : #include "nsSVGString.h"
      49                 : 
      50                 : typedef nsSVGGraphicElement nsSVGFilterElementBase;
      51                 : 
      52                 : class nsSVGFilterElement : public nsSVGFilterElementBase,
      53                 :                            public nsIDOMSVGFilterElement,
      54                 :                            public DOMSVGTests,
      55                 :                            public nsIDOMSVGURIReference,
      56                 :                            public nsIDOMSVGUnitTypes
      57               0 : {
      58                 :   friend class nsSVGFilterFrame;
      59                 :   friend class nsAutoFilterInstance;
      60                 : 
      61                 : protected:
      62                 :   friend nsresult NS_NewSVGFilterElement(nsIContent **aResult,
      63                 :                                          already_AddRefed<nsINodeInfo> aNodeInfo);
      64                 :   nsSVGFilterElement(already_AddRefed<nsINodeInfo> aNodeInfo);
      65                 : 
      66                 : public:
      67                 :   // interfaces:
      68                 : 
      69                 :   NS_DECL_ISUPPORTS_INHERITED
      70                 :   NS_DECL_NSIDOMSVGFILTERELEMENT
      71                 :   NS_DECL_NSIDOMSVGURIREFERENCE
      72                 : 
      73                 :   // xxx I wish we could use virtual inheritance
      74               0 :   NS_FORWARD_NSIDOMNODE(nsSVGFilterElementBase::)
      75               0 :   NS_FORWARD_NSIDOMELEMENT(nsSVGFilterElementBase::)
      76               0 :   NS_FORWARD_NSIDOMSVGELEMENT(nsSVGFilterElementBase::)
      77                 : 
      78                 :   // nsIContent
      79                 :   virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const;
      80                 :   NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const;
      81                 : 
      82                 :   // Invalidate users of this filter
      83                 :   void Invalidate();
      84                 : 
      85                 :   virtual nsXPCClassInfo* GetClassInfo();
      86                 : 
      87                 :   // nsSVGSVGElement methods:
      88                 :   virtual bool HasValidDimensions() const;
      89                 : protected:
      90                 : 
      91                 :   virtual LengthAttributesInfo GetLengthInfo();
      92                 :   virtual IntegerPairAttributesInfo GetIntegerPairInfo();
      93                 :   virtual EnumAttributesInfo GetEnumInfo();
      94                 :   virtual StringAttributesInfo GetStringInfo();
      95                 : 
      96                 :   enum { X, Y, WIDTH, HEIGHT };
      97                 :   nsSVGLength2 mLengthAttributes[4];
      98                 :   static LengthInfo sLengthInfo[4];
      99                 : 
     100                 :   enum { FILTERRES };
     101                 :   nsSVGIntegerPair mIntegerPairAttributes[1];
     102                 :   static IntegerPairInfo sIntegerPairInfo[1];
     103                 : 
     104                 :   enum { FILTERUNITS, PRIMITIVEUNITS };
     105                 :   nsSVGEnum mEnumAttributes[2];
     106                 :   static EnumInfo sEnumInfo[2];
     107                 : 
     108                 :   enum { HREF };
     109                 :   nsSVGString mStringAttributes[1];
     110                 :   static StringInfo sStringInfo[1];
     111                 : };
     112                 : 
     113                 : #endif

Generated by: LCOV version 1.7