Bug 1444460 [wpt PR 9948] - gyroscope: Rename LocalCoordinateSystem to GyroscopeLocal...
[gecko.git] / dom / svg / SVGAttrValueWrapper.cpp
blob5561397dc484698ad3b2f19d22294fc5785eb49d
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/. */
7 #include "SVGAttrValueWrapper.h"
8 #include "nsSVGAngle.h"
9 #include "nsSVGIntegerPair.h"
10 #include "nsSVGLength2.h"
11 #include "nsSVGNumberPair.h"
12 #include "nsSVGViewBox.h"
13 #include "SVGAnimatedPreserveAspectRatio.h"
14 #include "SVGLengthList.h"
15 #include "SVGNumberList.h"
16 #include "SVGPathData.h"
17 #include "SVGPointList.h"
18 #include "SVGStringList.h"
19 #include "SVGTransformList.h"
21 using namespace mozilla;
23 /*static*/ void
24 SVGAttrValueWrapper::ToString(const nsSVGAngle* aAngle, nsAString& aResult)
26 aAngle->GetBaseValueString(aResult);
29 /*static*/ void
30 SVGAttrValueWrapper::ToString(const nsSVGIntegerPair* aIntegerPair,
31 nsAString& aResult)
33 aIntegerPair->GetBaseValueString(aResult);
36 /*static*/ void
37 SVGAttrValueWrapper::ToString(const nsSVGLength2* aLength, nsAString& aResult)
39 aLength->GetBaseValueString(aResult);
42 /*static*/ void
43 SVGAttrValueWrapper::ToString(const SVGLengthList* aLengthList,
44 nsAString& aResult)
46 aLengthList->GetValueAsString(aResult);
49 /*static*/ void
50 SVGAttrValueWrapper::ToString(const SVGNumberList* aNumberList,
51 nsAString& aResult)
53 aNumberList->GetValueAsString(aResult);
56 /*static*/ void
57 SVGAttrValueWrapper::ToString(const nsSVGNumberPair* aNumberPair,
58 nsAString& aResult)
60 aNumberPair->GetBaseValueString(aResult);
63 /*static*/ void
64 SVGAttrValueWrapper::ToString(const SVGPathData* aPathData, nsAString& aResult)
66 aPathData->GetValueAsString(aResult);
69 /*static*/ void
70 SVGAttrValueWrapper::ToString(const SVGPointList* aPointList,
71 nsAString& aResult)
73 aPointList->GetValueAsString(aResult);
76 /*static*/ void
77 SVGAttrValueWrapper::ToString(
78 const SVGAnimatedPreserveAspectRatio* aPreserveAspectRatio,
79 nsAString& aResult)
81 aPreserveAspectRatio->GetBaseValueString(aResult);
84 /*static*/ void
85 SVGAttrValueWrapper::ToString(const SVGStringList* aStringList,
86 nsAString& aResult)
88 aStringList->GetValue(aResult);
91 /*static*/ void
92 SVGAttrValueWrapper::ToString(const SVGTransformList* aTransformList,
93 nsAString& aResult)
95 aTransformList->GetValueAsString(aResult);
98 /*static*/ void
99 SVGAttrValueWrapper::ToString(const nsSVGViewBox* aViewBox, nsAString& aResult)
101 aViewBox->GetBaseValueString(aResult);