/src/mozilla-central/dom/svg/SVGAttrValueWrapper.cpp
Line | Count | Source (jump to first uncovered line) |
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 "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" |
20 | | |
21 | | using namespace mozilla; |
22 | | |
23 | | /*static*/ void |
24 | | SVGAttrValueWrapper::ToString(const nsSVGAngle* aAngle, nsAString& aResult) |
25 | 0 | { |
26 | 0 | aAngle->GetBaseValueString(aResult); |
27 | 0 | } |
28 | | |
29 | | /*static*/ void |
30 | | SVGAttrValueWrapper::ToString(const nsSVGIntegerPair* aIntegerPair, |
31 | | nsAString& aResult) |
32 | 0 | { |
33 | 0 | aIntegerPair->GetBaseValueString(aResult); |
34 | 0 | } |
35 | | |
36 | | /*static*/ void |
37 | | SVGAttrValueWrapper::ToString(const nsSVGLength2* aLength, nsAString& aResult) |
38 | 0 | { |
39 | 0 | aLength->GetBaseValueString(aResult); |
40 | 0 | } |
41 | | |
42 | | /*static*/ void |
43 | | SVGAttrValueWrapper::ToString(const SVGLengthList* aLengthList, |
44 | | nsAString& aResult) |
45 | 0 | { |
46 | 0 | aLengthList->GetValueAsString(aResult); |
47 | 0 | } |
48 | | |
49 | | /*static*/ void |
50 | | SVGAttrValueWrapper::ToString(const SVGNumberList* aNumberList, |
51 | | nsAString& aResult) |
52 | 0 | { |
53 | 0 | aNumberList->GetValueAsString(aResult); |
54 | 0 | } |
55 | | |
56 | | /*static*/ void |
57 | | SVGAttrValueWrapper::ToString(const nsSVGNumberPair* aNumberPair, |
58 | | nsAString& aResult) |
59 | 0 | { |
60 | 0 | aNumberPair->GetBaseValueString(aResult); |
61 | 0 | } |
62 | | |
63 | | /*static*/ void |
64 | | SVGAttrValueWrapper::ToString(const SVGPathData* aPathData, nsAString& aResult) |
65 | 0 | { |
66 | 0 | aPathData->GetValueAsString(aResult); |
67 | 0 | } |
68 | | |
69 | | /*static*/ void |
70 | | SVGAttrValueWrapper::ToString(const SVGPointList* aPointList, |
71 | | nsAString& aResult) |
72 | 0 | { |
73 | 0 | aPointList->GetValueAsString(aResult); |
74 | 0 | } |
75 | | |
76 | | /*static*/ void |
77 | | SVGAttrValueWrapper::ToString( |
78 | | const SVGAnimatedPreserveAspectRatio* aPreserveAspectRatio, |
79 | | nsAString& aResult) |
80 | 0 | { |
81 | 0 | aPreserveAspectRatio->GetBaseValueString(aResult); |
82 | 0 | } |
83 | | |
84 | | /*static*/ void |
85 | | SVGAttrValueWrapper::ToString(const SVGStringList* aStringList, |
86 | | nsAString& aResult) |
87 | 0 | { |
88 | 0 | aStringList->GetValue(aResult); |
89 | 0 | } |
90 | | |
91 | | /*static*/ void |
92 | | SVGAttrValueWrapper::ToString(const SVGTransformList* aTransformList, |
93 | | nsAString& aResult) |
94 | 0 | { |
95 | 0 | aTransformList->GetValueAsString(aResult); |
96 | 0 | } |
97 | | |
98 | | /*static*/ void |
99 | | SVGAttrValueWrapper::ToString(const nsSVGViewBox* aViewBox, nsAString& aResult) |
100 | 0 | { |
101 | 0 | aViewBox->GetBaseValueString(aResult); |
102 | 0 | } |