2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 15:12:37 +04:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-02-16 03:40:46 +04:00
|
|
|
|
|
|
|
#include "SVGAttrValueWrapper.h"
|
2019-01-06 20:52:55 +03:00
|
|
|
|
|
|
|
#include "SVGAnimatedPreserveAspectRatio.h"
|
2019-01-06 11:22:55 +03:00
|
|
|
#include "SVGIntegerPair.h"
|
2012-02-16 03:40:46 +04:00
|
|
|
#include "nsSVGLength2.h"
|
|
|
|
#include "SVGLengthList.h"
|
2019-01-06 20:52:55 +03:00
|
|
|
#include "SVGNumberPair.h"
|
2012-02-16 03:40:46 +04:00
|
|
|
#include "SVGNumberList.h"
|
2019-02-15 11:41:37 +03:00
|
|
|
#include "SVGOrient.h"
|
2012-02-16 03:40:46 +04:00
|
|
|
#include "SVGPathData.h"
|
|
|
|
#include "SVGPointList.h"
|
2012-02-16 03:40:46 +04:00
|
|
|
#include "SVGStringList.h"
|
2012-02-16 03:40:46 +04:00
|
|
|
#include "SVGTransformList.h"
|
2019-01-06 20:52:55 +03:00
|
|
|
#include "SVGViewBox.h"
|
2012-02-16 03:40:46 +04:00
|
|
|
|
2019-01-06 11:22:55 +03:00
|
|
|
namespace mozilla {
|
2012-02-16 03:40:46 +04:00
|
|
|
|
2019-02-15 11:41:37 +03:00
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGOrient* aOrient,
|
2012-02-16 03:40:46 +04:00
|
|
|
nsAString& aResult) {
|
2019-02-15 11:41:37 +03:00
|
|
|
aOrient->GetBaseValueString(aResult);
|
2012-02-16 03:40:46 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(
|
2019-01-06 11:22:55 +03:00
|
|
|
const SVGIntegerPair* aIntegerPair, nsAString& aResult) {
|
2012-02-16 03:40:46 +04:00
|
|
|
aIntegerPair->GetBaseValueString(aResult);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const nsSVGLength2* aLength,
|
|
|
|
nsAString& aResult) {
|
|
|
|
aLength->GetBaseValueString(aResult);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGLengthList* aLengthList,
|
|
|
|
nsAString& aResult) {
|
|
|
|
aLengthList->GetValueAsString(aResult);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGNumberList* aNumberList,
|
|
|
|
nsAString& aResult) {
|
|
|
|
aNumberList->GetValueAsString(aResult);
|
|
|
|
}
|
|
|
|
|
2019-01-06 11:22:55 +03:00
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGNumberPair* aNumberPair,
|
|
|
|
nsAString& aResult) {
|
2012-02-16 03:40:46 +04:00
|
|
|
aNumberPair->GetBaseValueString(aResult);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGPathData* aPathData,
|
|
|
|
nsAString& aResult) {
|
|
|
|
aPathData->GetValueAsString(aResult);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGPointList* aPointList,
|
|
|
|
nsAString& aResult) {
|
|
|
|
aPointList->GetValueAsString(aResult);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(
|
|
|
|
const SVGAnimatedPreserveAspectRatio* aPreserveAspectRatio,
|
|
|
|
nsAString& aResult) {
|
|
|
|
aPreserveAspectRatio->GetBaseValueString(aResult);
|
|
|
|
}
|
|
|
|
|
2012-02-16 03:40:46 +04:00
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGStringList* aStringList,
|
|
|
|
nsAString& aResult) {
|
|
|
|
aStringList->GetValue(aResult);
|
|
|
|
}
|
|
|
|
|
2012-02-16 03:40:46 +04:00
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(
|
|
|
|
const SVGTransformList* aTransformList, nsAString& aResult) {
|
|
|
|
aTransformList->GetValueAsString(aResult);
|
|
|
|
}
|
|
|
|
|
2019-01-06 20:52:55 +03:00
|
|
|
/*static*/ void SVGAttrValueWrapper::ToString(const SVGViewBox* aViewBox,
|
2012-02-16 03:40:46 +04:00
|
|
|
nsAString& aResult) {
|
|
|
|
aViewBox->GetBaseValueString(aResult);
|
|
|
|
}
|
2019-01-06 11:22:55 +03:00
|
|
|
|
|
|
|
} // namespace mozilla
|