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
;
24 SVGAttrValueWrapper::ToString(const nsSVGAngle
* aAngle
, nsAString
& aResult
)
26 aAngle
->GetBaseValueString(aResult
);
30 SVGAttrValueWrapper::ToString(const nsSVGIntegerPair
* aIntegerPair
,
33 aIntegerPair
->GetBaseValueString(aResult
);
37 SVGAttrValueWrapper::ToString(const nsSVGLength2
* aLength
, nsAString
& aResult
)
39 aLength
->GetBaseValueString(aResult
);
43 SVGAttrValueWrapper::ToString(const SVGLengthList
* aLengthList
,
46 aLengthList
->GetValueAsString(aResult
);
50 SVGAttrValueWrapper::ToString(const SVGNumberList
* aNumberList
,
53 aNumberList
->GetValueAsString(aResult
);
57 SVGAttrValueWrapper::ToString(const nsSVGNumberPair
* aNumberPair
,
60 aNumberPair
->GetBaseValueString(aResult
);
64 SVGAttrValueWrapper::ToString(const SVGPathData
* aPathData
, nsAString
& aResult
)
66 aPathData
->GetValueAsString(aResult
);
70 SVGAttrValueWrapper::ToString(const SVGPointList
* aPointList
,
73 aPointList
->GetValueAsString(aResult
);
77 SVGAttrValueWrapper::ToString(
78 const SVGAnimatedPreserveAspectRatio
* aPreserveAspectRatio
,
81 aPreserveAspectRatio
->GetBaseValueString(aResult
);
85 SVGAttrValueWrapper::ToString(const SVGStringList
* aStringList
,
88 aStringList
->GetValue(aResult
);
92 SVGAttrValueWrapper::ToString(const SVGTransformList
* aTransformList
,
95 aTransformList
->GetValueAsString(aResult
);
99 SVGAttrValueWrapper::ToString(const nsSVGViewBox
* aViewBox
, nsAString
& aResult
)
101 aViewBox
->GetBaseValueString(aResult
);