LCOV - app.info - content/svg/content/src/nsSVGAnimateMotionElement.cpp

LCOV - code coverage report
| Current view: | directory - content/svg/content/src - nsSVGAnimateMotionElement.cpp (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 20 | 0 | 0.0 %
| Date: | 2012-07-07 | Functions: | 10 | 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 Brian Birtles.
          18                 :  * Portions created by the Initial Developer are Copyright (C) 2005
          19                 :  * the Initial Developer. All Rights Reserved.
          20                 :  *
          21                 :  * Contributor(s):
          22                 :  *   Brian Birtles <birtles@gmail.com>
          23                 :  *   Chris Double  <chris.double@double.co.nz>
          24                 :  *   Daniel Holbert <dholbert@mozilla.com>
          25                 :  *   Eric Hedekar <afterthebeep@gmail.com>
          26                 :  *
          27                 :  * Alternatively, the contents of this file may be used under the terms of
          28                 :  * either of the GNU General Public License Version 2 or later (the "GPL"),
          29                 :  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
          30                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
          31                 :  * of those above. If you wish to allow use of your version of this file only
          32                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
          33                 :  * use your version of this file under the terms of the MPL, indicate your
          34                 :  * decision by deleting the provisions above and replace them with the notice
          35                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
          36                 :  * the provisions above, a recipient may use your version of this file under
          37                 :  * the terms of any one of the MPL, the GPL or the LGPL.
          38                 :  *
          39                 :  * ***** END LICENSE BLOCK ***** */
          40                 :
          41                 : #include "nsSVGAnimateMotionElement.h"
          42                 :
          43               0 : NS_IMPL_NS_NEW_SVG_ELEMENT(AnimateMotion)
          44                 :
          45                 : //----------------------------------------------------------------------
          46                 : // nsISupports methods
          47                 :
          48               0 : NS_IMPL_ADDREF_INHERITED(nsSVGAnimateMotionElement,nsSVGAnimateMotionElementBase)
          49               0 : NS_IMPL_RELEASE_INHERITED(nsSVGAnimateMotionElement,nsSVGAnimateMotionElementBase)
          50                 :
          51               0 : DOMCI_NODE_DATA(SVGAnimateMotionElement, nsSVGAnimateMotionElement)
          52                 :
          53               0 : NS_INTERFACE_TABLE_HEAD(nsSVGAnimateMotionElement)
          54               0 :   NS_NODE_INTERFACE_TABLE6(nsSVGAnimateMotionElement, nsIDOMNode,
          55                 :                            nsIDOMElement, nsIDOMSVGElement,
          56                 :                            nsIDOMSVGAnimationElement, nsIDOMSVGTests,
          57                 :                            nsIDOMSVGAnimateMotionElement)
          58               0 :   NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(SVGAnimateMotionElement)
          59               0 : NS_INTERFACE_MAP_END_INHERITING(nsSVGAnimateMotionElementBase)
          60                 :
          61                 : //----------------------------------------------------------------------
          62                 : // Implementation
          63                 :
          64               0 : nsSVGAnimateMotionElement::nsSVGAnimateMotionElement(already_AddRefed<nsINodeInfo> aNodeInfo)
          65               0 :   : nsSVGAnimateMotionElementBase(aNodeInfo)
          66                 : {
          67               0 : }
          68                 :
          69                 : //----------------------------------------------------------------------
          70                 : // nsIDOMNode methods
          71                 :
          72               0 : NS_IMPL_ELEMENT_CLONE_WITH_INIT(nsSVGAnimateMotionElement)
          73                 :
          74                 : //----------------------------------------------------------------------
          75                 : // nsISMILAnimationElement methods
          76                 :
          77                 : nsSMILAnimationFunction&
          78               0 : nsSVGAnimateMotionElement::AnimationFunction()
          79                 : {
          80               0 :   return mAnimationFunction;
          81                 : }
          82                 :
          83                 : bool
          84               0 : nsSVGAnimateMotionElement::GetTargetAttributeName(PRInt32 *aNamespaceID,
          85                 :                                                   nsIAtom **aLocalName) const
          86                 : {
          87                 :   // <animateMotion> doesn't take an attributeName, since it doesn't target an
          88                 :   // 'attribute' per se.  We'll use a unique dummy attribute-name so that our
          89                 :   // nsSMILTargetIdentifier logic (which requires a attribute name) still works.
          90               0 :   *aNamespaceID = kNameSpaceID_None;
          91               0 :   *aLocalName = nsGkAtoms::mozAnimateMotionDummyAttr;
          92               0 :   return true;
          93                 : }
          94                 :
          95                 : nsSMILTargetAttrType
          96               0 : nsSVGAnimateMotionElement::GetTargetAttributeType() const
          97                 : {
          98                 :   // <animateMotion> doesn't take an attributeType, since it doesn't target an
          99                 :   // 'attribute' per se.  We'll just return 'XML' for simplicity.  (This just
         100                 :   // needs to match what we expect in nsSVGElement::GetAnimAttr.)
         101               0 :   return eSMILTargetAttrType_XML;
         102                 : }

Generated by: LCOV version 1.7