LCOV - code coverage report
Current view: top level - dom/svg - SVGAnimateTransformElement.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 22 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             : #include "mozilla/dom/SVGAnimateTransformElement.h"
       8             : #include "mozilla/dom/SVGAnimateTransformElementBinding.h"
       9             : 
      10           0 : NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(AnimateTransform)
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : JSObject*
      16           0 : SVGAnimateTransformElement::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
      17             : {
      18           0 :   return SVGAnimateTransformElementBinding::Wrap(aCx, this, aGivenProto);
      19             : }
      20             : 
      21             : //----------------------------------------------------------------------
      22             : // Implementation
      23             : 
      24           0 : SVGAnimateTransformElement::SVGAnimateTransformElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      25           0 :   : SVGAnimationElement(aNodeInfo)
      26             : {
      27           0 : }
      28             : 
      29             : bool
      30           0 : SVGAnimateTransformElement::ParseAttribute(int32_t aNamespaceID,
      31             :                                            nsIAtom* aAttribute,
      32             :                                            const nsAString& aValue,
      33             :                                            nsAttrValue& aResult)
      34             : {
      35             :   // 'type' is an <animateTransform>-specific attribute, and we'll handle it
      36             :   // specially.
      37           0 :   if (aNamespaceID == kNameSpaceID_None && aAttribute == nsGkAtoms::type) {
      38           0 :     aResult.ParseAtom(aValue);
      39           0 :     nsIAtom* atom = aResult.GetAtomValue();
      40           0 :     if (atom != nsGkAtoms::translate &&
      41           0 :         atom != nsGkAtoms::scale &&
      42           0 :         atom != nsGkAtoms::rotate &&
      43           0 :         atom != nsGkAtoms::skewX &&
      44           0 :         atom != nsGkAtoms::skewY) {
      45           0 :       ReportAttributeParseFailure(OwnerDoc(), aAttribute, aValue);
      46             :     }
      47           0 :     return true;
      48             :   }
      49             : 
      50           0 :   return SVGAnimationElement::ParseAttribute(aNamespaceID,
      51             :                                              aAttribute, aValue,
      52           0 :                                              aResult);
      53             : }
      54             : 
      55             : //----------------------------------------------------------------------
      56             : // nsIDOMNode methods
      57             : 
      58           0 : NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGAnimateTransformElement)
      59             : 
      60             : //----------------------------------------------------------------------
      61             : 
      62             : nsSMILAnimationFunction&
      63           0 : SVGAnimateTransformElement::AnimationFunction()
      64             : {
      65           0 :   return mAnimationFunction;
      66             : }
      67             : 
      68             : } // namespace dom
      69             : } // namespace mozilla
      70             : 

Generated by: LCOV version 1.13