Bug 1936278 - Prevent search mode chiclet from being dismissed when clicking in page...
[gecko.git] / dom / svg / SVGAttrValueWrapper.cpp
blobe10d3851ffdd58c3960da19d6cc89b29767369ce
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"
9 #include "SVGAnimatedIntegerPair.h"
10 #include "SVGAnimatedLength.h"
11 #include "SVGAnimatedNumberPair.h"
12 #include "SVGAnimatedOrient.h"
13 #include "SVGAnimatedPreserveAspectRatio.h"
14 #include "SVGAnimatedViewBox.h"
15 #include "SVGLengthList.h"
16 #include "SVGNumberList.h"
17 #include "SVGPathData.h"
18 #include "SVGPointList.h"
19 #include "SVGStringList.h"
20 #include "SVGTransformList.h"
22 namespace mozilla {
24 /*static*/
25 void SVGAttrValueWrapper::ToString(const SVGAnimatedOrient* aOrient,
26 nsAString& aResult) {
27 aOrient->GetBaseValueString(aResult);
30 /*static*/
31 void SVGAttrValueWrapper::ToString(const SVGAnimatedIntegerPair* aIntegerPair,
32 nsAString& aResult) {
33 aIntegerPair->GetBaseValueString(aResult);
36 /*static*/
37 void SVGAttrValueWrapper::ToString(const SVGAnimatedLength* aLength,
38 nsAString& aResult) {
39 aLength->GetBaseValueString(aResult);
42 /*static*/
43 void SVGAttrValueWrapper::ToString(const SVGLengthList* aLengthList,
44 nsAString& aResult) {
45 aLengthList->GetValueAsString(aResult);
48 /*static*/
49 void SVGAttrValueWrapper::ToString(const SVGNumberList* aNumberList,
50 nsAString& aResult) {
51 aNumberList->GetValueAsString(aResult);
54 /*static*/
55 void SVGAttrValueWrapper::ToString(const SVGAnimatedNumberPair* aNumberPair,
56 nsAString& aResult) {
57 aNumberPair->GetBaseValueString(aResult);
60 /*static*/
61 void SVGAttrValueWrapper::ToString(const SVGPathData* aPathData,
62 nsAString& aResult) {
63 nsAutoCString result;
64 aPathData->GetValueAsString(result);
65 CopyUTF8toUTF16(result, aResult);
68 /*static*/
69 void SVGAttrValueWrapper::ToString(const SVGPointList* aPointList,
70 nsAString& aResult) {
71 aPointList->GetValueAsString(aResult);
74 /*static*/
75 void SVGAttrValueWrapper::ToString(
76 const SVGAnimatedPreserveAspectRatio* aPreserveAspectRatio,
77 nsAString& aResult) {
78 aPreserveAspectRatio->GetBaseValueString(aResult);
81 /*static*/
82 void SVGAttrValueWrapper::ToString(const SVGStringList* aStringList,
83 nsAString& aResult) {
84 aStringList->GetValue(aResult);
87 /*static*/
88 void SVGAttrValueWrapper::ToString(const SVGTransformList* aTransformList,
89 nsAString& aResult) {
90 aTransformList->GetValueAsString(aResult);
93 /*static*/
94 void SVGAttrValueWrapper::ToString(const SVGAnimatedViewBox* aViewBox,
95 nsAString& aResult) {
96 aViewBox->GetBaseValueString(aResult);
99 } // namespace mozilla