LCOV - code coverage report
Current view: directory - layout/svg/base/src - nsSVGTextPathFrame.h (source / functions) Found Hit Coverage
Test: app.info Lines: 4 0 0.0 %
Date: 2012-06-02 Functions: 4 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 NSSVGTEXTPATHFRAME_H
      38                 : #define NSSVGTEXTPATHFRAME_H
      39                 : 
      40                 : #include "nsSVGTSpanFrame.h"
      41                 : #include "SVGLengthList.h"
      42                 : 
      43                 : namespace mozilla {
      44                 : class SVGNumberList;
      45                 : }
      46                 : 
      47                 : typedef nsSVGTSpanFrame nsSVGTextPathFrameBase;
      48                 : 
      49                 : class nsSVGTextPathFrame : public nsSVGTextPathFrameBase
      50               0 : {
      51                 :   friend nsIFrame*
      52                 :   NS_NewSVGTextPathFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
      53                 : protected:
      54               0 :   nsSVGTextPathFrame(nsStyleContext* aContext) : nsSVGTextPathFrameBase(aContext) {}
      55                 : 
      56                 : public:
      57                 :   NS_DECL_FRAMEARENA_HELPERS
      58                 : 
      59                 :   // nsIFrame:
      60                 : #ifdef DEBUG
      61                 :   NS_IMETHOD Init(nsIContent*      aContent,
      62                 :                   nsIFrame*        aParent,
      63                 :                   nsIFrame*        aPrevInFlow);
      64                 : #endif
      65                 : 
      66                 :   NS_IMETHOD  AttributeChanged(PRInt32         aNameSpaceID,
      67                 :                                nsIAtom*        aAttribute,
      68                 :                                PRInt32         aModType);
      69                 :   /**
      70                 :    * Get the "type" of the frame
      71                 :    *
      72                 :    * @see nsGkAtoms::svgGFrame
      73                 :    */
      74                 :   virtual nsIAtom* GetType() const;
      75                 : 
      76                 : #ifdef DEBUG
      77               0 :   NS_IMETHOD GetFrameName(nsAString& aResult) const
      78                 :   {
      79               0 :     return MakeFrameName(NS_LITERAL_STRING("SVGTextPath"), aResult);
      80                 :   }
      81                 : #endif
      82                 : 
      83                 :   // nsSVGTextPathFrame methods:
      84                 :   already_AddRefed<gfxFlattenedPath> GetFlattenedPath();
      85                 :   nsIFrame *GetPathFrame();
      86                 : 
      87                 :   /**
      88                 :    * Gets the scale by which offsets along this textPath must be scaled. This
      89                 :    * scaling is due to the user provided 'pathLength' attribute on the <path>
      90                 :    * element, which is a user provided estimate of the path length.
      91                 :    */
      92                 :   gfxFloat GetOffsetScale();
      93                 : 
      94                 :   /**
      95                 :    * Gets the offset from the start of the path at which the first character
      96                 :    * should be positioned. The value returned already takes GetOffsetScale
      97                 :    * into account.
      98                 :    */
      99                 :   gfxFloat GetStartOffset();
     100                 : 
     101                 : protected:
     102                 : 
     103                 :   virtual void GetXY(SVGUserUnitList *aX, SVGUserUnitList *aY);
     104                 :   virtual void GetDxDy(SVGUserUnitList *aDx, SVGUserUnitList *aDy);
     105                 :   virtual const SVGNumberList *GetRotate();
     106                 : };
     107                 : 
     108                 : #endif

Generated by: LCOV version 1.7