2015-05-03 12:32:37 -07: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: */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* 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/. */
|
2009-02-03 06:42:24 -08:00
|
|
|
|
|
|
|
#include "nsSVGViewBox.h"
|
2015-05-29 13:10:41 -07:00
|
|
|
|
|
|
|
#include "mozilla/Move.h"
|
2010-05-04 07:43:48 -07:00
|
|
|
#include "nsCharSeparatedTokenizer.h"
|
2010-02-18 13:51:00 -08:00
|
|
|
#include "nsSMILValue.h"
|
2013-10-01 00:50:40 -07:00
|
|
|
#include "nsTextFormatter.h"
|
2012-09-22 12:26:05 -07:00
|
|
|
#include "SVGContentUtils.h"
|
2010-02-18 13:51:00 -08:00
|
|
|
#include "SVGViewBoxSMILType.h"
|
|
|
|
|
2010-05-04 07:43:48 -07:00
|
|
|
#define NUM_VIEWBOX_COMPONENTS 4
|
2010-02-18 13:51:00 -08:00
|
|
|
using namespace mozilla;
|
2009-02-03 06:42:24 -08:00
|
|
|
|
2010-02-20 13:13:11 -08:00
|
|
|
/* Implementation of nsSVGViewBoxRect methods */
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool
|
2010-02-20 13:13:11 -08:00
|
|
|
nsSVGViewBoxRect::operator==(const nsSVGViewBoxRect& aOther) const
|
|
|
|
{
|
|
|
|
if (&aOther == this)
|
2011-10-17 07:59:28 -07:00
|
|
|
return true;
|
2010-02-20 13:13:11 -08:00
|
|
|
|
2013-02-26 08:58:06 -08:00
|
|
|
return (none && aOther.none) ||
|
|
|
|
(!none && !aOther.none &&
|
|
|
|
x == aOther.x &&
|
|
|
|
y == aOther.y &&
|
|
|
|
width == aOther.width &&
|
|
|
|
height == aOther.height);
|
2010-02-20 13:13:11 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cycle collection macros for nsSVGViewBox */
|
|
|
|
|
2013-05-16 11:06:21 -07:00
|
|
|
NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(nsSVGViewBox::DOMBaseVal, mSVGElement)
|
|
|
|
NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(nsSVGViewBox::DOMAnimVal, mSVGElement)
|
2009-02-03 06:42:24 -08:00
|
|
|
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsSVGViewBox::DOMBaseVal)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsSVGViewBox::DOMBaseVal)
|
|
|
|
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsSVGViewBox::DOMAnimVal)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsSVGViewBox::DOMAnimVal)
|
|
|
|
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsSVGViewBox::DOMBaseVal)
|
2013-05-16 11:06:21 -07:00
|
|
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
2009-02-03 06:42:24 -08:00
|
|
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
|
|
|
NS_INTERFACE_MAP_END
|
|
|
|
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsSVGViewBox::DOMAnimVal)
|
2013-05-16 11:06:21 -07:00
|
|
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
2009-02-03 06:42:24 -08:00
|
|
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
|
|
|
NS_INTERFACE_MAP_END
|
|
|
|
|
2012-12-21 01:18:58 -08:00
|
|
|
static nsSVGAttrTearoffTable<nsSVGViewBox, nsSVGViewBox::DOMBaseVal>
|
|
|
|
sBaseSVGViewBoxTearoffTable;
|
|
|
|
static nsSVGAttrTearoffTable<nsSVGViewBox, nsSVGViewBox::DOMAnimVal>
|
|
|
|
sAnimSVGViewBoxTearoffTable;
|
2013-05-20 04:46:12 -07:00
|
|
|
nsSVGAttrTearoffTable<nsSVGViewBox, dom::SVGAnimatedRect>
|
2013-05-09 10:42:12 -07:00
|
|
|
nsSVGViewBox::sSVGAnimatedRectTearoffTable;
|
2012-12-21 01:18:58 -08:00
|
|
|
|
|
|
|
|
2010-02-20 13:13:11 -08:00
|
|
|
/* Implementation of nsSVGViewBox methods */
|
2009-02-03 06:42:24 -08:00
|
|
|
|
|
|
|
void
|
|
|
|
nsSVGViewBox::Init()
|
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
mHasBaseVal = false;
|
2013-02-26 08:58:06 -08:00
|
|
|
mAnimVal = nullptr;
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2010-02-18 13:51:00 -08:00
|
|
|
void
|
2013-02-26 08:58:06 -08:00
|
|
|
nsSVGViewBox::SetAnimValue(const nsSVGViewBoxRect& aRect,
|
2010-02-18 13:51:00 -08:00
|
|
|
nsSVGElement *aSVGElement)
|
|
|
|
{
|
|
|
|
if (!mAnimVal) {
|
|
|
|
// it's okay if allocation fails - and no point in reporting that
|
2013-02-26 08:58:06 -08:00
|
|
|
mAnimVal = new nsSVGViewBoxRect(aRect);
|
2010-02-18 13:51:00 -08:00
|
|
|
} else {
|
2013-02-26 08:58:06 -08:00
|
|
|
if (aRect == *mAnimVal) {
|
2012-06-01 16:53:06 -07:00
|
|
|
return;
|
|
|
|
}
|
2013-02-26 08:58:06 -08:00
|
|
|
*mAnimVal = aRect;
|
2010-02-18 13:51:00 -08:00
|
|
|
}
|
|
|
|
aSVGElement->DidAnimateViewBox();
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2012-05-17 03:02:41 -07:00
|
|
|
nsSVGViewBox::SetBaseValue(const nsSVGViewBoxRect& aRect,
|
2011-10-09 08:25:07 -07:00
|
|
|
nsSVGElement *aSVGElement)
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
2013-02-26 08:58:06 -08:00
|
|
|
if (!mHasBaseVal || mBaseVal == aRect) {
|
|
|
|
// This method is used to set a single x, y, width
|
|
|
|
// or height value. It can't create a base value
|
|
|
|
// as the other components may be undefined. We record
|
|
|
|
// the new value though, so as not to lose data.
|
|
|
|
mBaseVal = aRect;
|
2012-02-15 15:40:46 -08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsAttrValue emptyOrOldValue = aSVGElement->WillChangeViewBox();
|
|
|
|
|
2012-05-17 03:02:41 -07:00
|
|
|
mBaseVal = aRect;
|
2011-10-17 07:59:28 -07:00
|
|
|
mHasBaseVal = true;
|
2009-02-03 06:42:24 -08:00
|
|
|
|
2012-02-15 15:40:46 -08:00
|
|
|
aSVGElement->DidChangeViewBox(emptyOrOldValue);
|
2010-02-18 13:51:00 -08:00
|
|
|
if (mAnimVal) {
|
|
|
|
aSVGElement->AnimationNeedsResample();
|
|
|
|
}
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2010-02-18 13:51:00 -08:00
|
|
|
static nsresult
|
|
|
|
ToSVGViewBoxRect(const nsAString& aStr, nsSVGViewBoxRect *aViewBox)
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
2013-02-26 08:58:06 -08:00
|
|
|
if (aStr.EqualsLiteral("none")) {
|
|
|
|
aViewBox->none = true;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2011-07-23 01:41:17 -07:00
|
|
|
nsCharSeparatedTokenizerTemplate<IsSVGWhitespace>
|
2010-05-04 07:43:48 -07:00
|
|
|
tokenizer(aStr, ',',
|
|
|
|
nsCharSeparatedTokenizer::SEPARATOR_OPTIONAL);
|
|
|
|
float vals[NUM_VIEWBOX_COMPONENTS];
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t i;
|
2010-05-04 07:43:48 -07:00
|
|
|
for (i = 0; i < NUM_VIEWBOX_COMPONENTS && tokenizer.hasMoreTokens(); ++i) {
|
2013-10-01 00:50:40 -07:00
|
|
|
if (!SVGContentUtils::ParseNumber(tokenizer.nextToken(), vals[i])) {
|
|
|
|
return NS_ERROR_DOM_SYNTAX_ERR;
|
2010-05-04 07:43:48 -07:00
|
|
|
}
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
2010-05-04 07:43:48 -07:00
|
|
|
|
|
|
|
if (i != NUM_VIEWBOX_COMPONENTS || // Too few values.
|
|
|
|
tokenizer.hasMoreTokens() || // Too many values.
|
2013-09-17 05:52:39 -07:00
|
|
|
tokenizer.separatorAfterCurrentToken()) { // Trailing comma.
|
2010-05-04 07:43:48 -07:00
|
|
|
return NS_ERROR_DOM_SYNTAX_ERR;
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2011-07-23 01:41:17 -07:00
|
|
|
aViewBox->x = vals[0];
|
|
|
|
aViewBox->y = vals[1];
|
|
|
|
aViewBox->width = vals[2];
|
|
|
|
aViewBox->height = vals[3];
|
2013-02-26 08:58:06 -08:00
|
|
|
aViewBox->none = false;
|
2011-07-23 01:41:17 -07:00
|
|
|
|
2010-05-04 07:43:48 -07:00
|
|
|
return NS_OK;
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2010-02-18 13:51:00 -08:00
|
|
|
nsresult
|
|
|
|
nsSVGViewBox::SetBaseValueString(const nsAString& aValue,
|
2012-08-25 10:02:34 -07:00
|
|
|
nsSVGElement *aSVGElement,
|
|
|
|
bool aDoSetAttr)
|
2010-02-18 13:51:00 -08:00
|
|
|
{
|
|
|
|
nsSVGViewBoxRect viewBox;
|
2011-10-09 08:25:07 -07:00
|
|
|
|
2013-02-26 08:58:06 -08:00
|
|
|
nsresult rv = ToSVGViewBoxRect(aValue, &viewBox);
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
return rv;
|
|
|
|
}
|
2013-07-23 21:48:12 -07:00
|
|
|
// Comparison against mBaseVal is only valid if we currently have a base val.
|
|
|
|
if (mHasBaseVal && viewBox == mBaseVal) {
|
2013-02-26 08:58:06 -08:00
|
|
|
return NS_OK;
|
2010-02-18 13:51:00 -08:00
|
|
|
}
|
2013-02-26 08:58:06 -08:00
|
|
|
|
|
|
|
nsAttrValue emptyOrOldValue;
|
|
|
|
if (aDoSetAttr) {
|
|
|
|
emptyOrOldValue = aSVGElement->WillChangeViewBox();
|
|
|
|
}
|
|
|
|
mHasBaseVal = true;
|
|
|
|
mBaseVal = viewBox;
|
|
|
|
|
|
|
|
if (aDoSetAttr) {
|
|
|
|
aSVGElement->DidChangeViewBox(emptyOrOldValue);
|
|
|
|
}
|
|
|
|
if (mAnimVal) {
|
|
|
|
aSVGElement->AnimationNeedsResample();
|
|
|
|
}
|
|
|
|
return NS_OK;
|
2010-02-18 13:51:00 -08:00
|
|
|
}
|
|
|
|
|
2009-02-03 06:42:24 -08:00
|
|
|
void
|
|
|
|
nsSVGViewBox::GetBaseValueString(nsAString& aValue) const
|
|
|
|
{
|
2013-02-26 08:58:06 -08:00
|
|
|
if (mBaseVal.none) {
|
|
|
|
aValue.AssignLiteral("none");
|
|
|
|
return;
|
|
|
|
}
|
2014-01-04 07:02:17 -08:00
|
|
|
char16_t buf[200];
|
|
|
|
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(char16_t),
|
2013-12-12 17:50:01 -08:00
|
|
|
MOZ_UTF16("%g %g %g %g"),
|
2009-02-03 06:42:24 -08:00
|
|
|
(double)mBaseVal.x, (double)mBaseVal.y,
|
|
|
|
(double)mBaseVal.width, (double)mBaseVal.height);
|
|
|
|
aValue.Assign(buf);
|
|
|
|
}
|
|
|
|
|
2013-05-20 04:46:12 -07:00
|
|
|
|
|
|
|
already_AddRefed<dom::SVGAnimatedRect>
|
|
|
|
nsSVGViewBox::ToSVGAnimatedRect(nsSVGElement* aSVGElement)
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
2013-05-09 10:42:12 -07:00
|
|
|
nsRefPtr<dom::SVGAnimatedRect> domAnimatedRect =
|
2012-12-21 01:18:58 -08:00
|
|
|
sSVGAnimatedRectTearoffTable.GetTearoff(this);
|
|
|
|
if (!domAnimatedRect) {
|
2013-05-09 10:42:12 -07:00
|
|
|
domAnimatedRect = new dom::SVGAnimatedRect(this, aSVGElement);
|
2012-12-21 01:18:58 -08:00
|
|
|
sSVGAnimatedRectTearoffTable.AddTearoff(this, domAnimatedRect);
|
|
|
|
}
|
2009-02-03 06:42:24 -08:00
|
|
|
|
2013-05-20 04:46:12 -07:00
|
|
|
return domAnimatedRect.forget();
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2013-05-20 04:46:12 -07:00
|
|
|
already_AddRefed<dom::SVGIRect>
|
|
|
|
nsSVGViewBox::ToDOMBaseVal(nsSVGElement *aSVGElement)
|
2012-12-21 01:18:58 -08:00
|
|
|
{
|
2013-02-26 08:58:06 -08:00
|
|
|
if (!mHasBaseVal || mBaseVal.none) {
|
2013-05-20 04:46:12 -07:00
|
|
|
return nullptr;
|
2013-02-26 08:58:06 -08:00
|
|
|
}
|
2013-05-20 04:46:12 -07:00
|
|
|
|
2012-12-21 01:18:58 -08:00
|
|
|
nsRefPtr<DOMBaseVal> domBaseVal =
|
|
|
|
sBaseSVGViewBoxTearoffTable.GetTearoff(this);
|
|
|
|
if (!domBaseVal) {
|
|
|
|
domBaseVal = new DOMBaseVal(this, aSVGElement);
|
|
|
|
sBaseSVGViewBoxTearoffTable.AddTearoff(this, domBaseVal);
|
|
|
|
}
|
2009-02-03 06:42:24 -08:00
|
|
|
|
2013-05-20 04:46:12 -07:00
|
|
|
return domBaseVal.forget();
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2012-12-21 01:18:58 -08:00
|
|
|
nsSVGViewBox::DOMBaseVal::~DOMBaseVal()
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
2012-12-21 01:18:58 -08:00
|
|
|
sBaseSVGViewBoxTearoffTable.RemoveTearoff(mVal);
|
|
|
|
}
|
2009-02-03 06:42:24 -08:00
|
|
|
|
2013-05-20 04:46:12 -07:00
|
|
|
already_AddRefed<dom::SVGIRect>
|
|
|
|
nsSVGViewBox::ToDOMAnimVal(nsSVGElement *aSVGElement)
|
2012-12-21 01:18:58 -08:00
|
|
|
{
|
2013-02-26 08:58:06 -08:00
|
|
|
if ((mAnimVal && mAnimVal->none) ||
|
|
|
|
(!mAnimVal && (!mHasBaseVal || mBaseVal.none))) {
|
2013-05-20 04:46:12 -07:00
|
|
|
return nullptr;
|
2013-02-26 08:58:06 -08:00
|
|
|
}
|
2013-05-20 04:46:12 -07:00
|
|
|
|
2012-12-21 01:18:58 -08:00
|
|
|
nsRefPtr<DOMAnimVal> domAnimVal =
|
|
|
|
sAnimSVGViewBoxTearoffTable.GetTearoff(this);
|
|
|
|
if (!domAnimVal) {
|
|
|
|
domAnimVal = new DOMAnimVal(this, aSVGElement);
|
|
|
|
sAnimSVGViewBoxTearoffTable.AddTearoff(this, domAnimVal);
|
|
|
|
}
|
|
|
|
|
2013-05-20 04:46:12 -07:00
|
|
|
return domAnimVal.forget();
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2012-12-21 01:18:58 -08:00
|
|
|
nsSVGViewBox::DOMAnimVal::~DOMAnimVal()
|
|
|
|
{
|
|
|
|
sAnimSVGViewBoxTearoffTable.RemoveTearoff(mVal);
|
|
|
|
}
|
|
|
|
|
2013-03-26 08:53:13 -07:00
|
|
|
void
|
|
|
|
nsSVGViewBox::DOMBaseVal::SetX(float aX, ErrorResult& aRv)
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
|
|
|
nsSVGViewBoxRect rect = mVal->GetBaseValue();
|
|
|
|
rect.x = aX;
|
2013-02-26 08:58:06 -08:00
|
|
|
mVal->SetBaseValue(rect, mSVGElement);
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2013-03-26 08:53:13 -07:00
|
|
|
void
|
|
|
|
nsSVGViewBox::DOMBaseVal::SetY(float aY, ErrorResult& aRv)
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
|
|
|
nsSVGViewBoxRect rect = mVal->GetBaseValue();
|
|
|
|
rect.y = aY;
|
2013-02-26 08:58:06 -08:00
|
|
|
mVal->SetBaseValue(rect, mSVGElement);
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2013-03-26 08:53:13 -07:00
|
|
|
void
|
|
|
|
nsSVGViewBox::DOMBaseVal::SetWidth(float aWidth, ErrorResult& aRv)
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
|
|
|
nsSVGViewBoxRect rect = mVal->GetBaseValue();
|
|
|
|
rect.width = aWidth;
|
2013-02-26 08:58:06 -08:00
|
|
|
mVal->SetBaseValue(rect, mSVGElement);
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
|
|
|
|
2013-03-26 08:53:13 -07:00
|
|
|
void
|
|
|
|
nsSVGViewBox::DOMBaseVal::SetHeight(float aHeight, ErrorResult& aRv)
|
2009-02-03 06:42:24 -08:00
|
|
|
{
|
|
|
|
nsSVGViewBoxRect rect = mVal->GetBaseValue();
|
|
|
|
rect.height = aHeight;
|
2013-02-26 08:58:06 -08:00
|
|
|
mVal->SetBaseValue(rect, mSVGElement);
|
2009-02-03 06:42:24 -08:00
|
|
|
}
|
2010-02-18 13:51:00 -08:00
|
|
|
|
|
|
|
nsISMILAttr*
|
|
|
|
nsSVGViewBox::ToSMILAttr(nsSVGElement *aSVGElement)
|
|
|
|
{
|
|
|
|
return new SMILViewBox(this, aSVGElement);
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
|
|
|
nsSVGViewBox::SMILViewBox
|
|
|
|
::ValueFromString(const nsAString& aStr,
|
2013-03-18 20:18:45 -07:00
|
|
|
const dom::SVGAnimationElement* /*aSrcElement*/,
|
2010-02-20 13:13:11 -08:00
|
|
|
nsSMILValue& aValue,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool& aPreventCachingOfSandwich) const
|
2010-02-18 13:51:00 -08:00
|
|
|
{
|
|
|
|
nsSVGViewBoxRect viewBox;
|
|
|
|
nsresult res = ToSVGViewBoxRect(aStr, &viewBox);
|
|
|
|
if (NS_FAILED(res)) {
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
nsSMILValue val(&SVGViewBoxSMILType::sSingleton);
|
|
|
|
*static_cast<nsSVGViewBoxRect*>(val.mU.mPtr) = viewBox;
|
2015-05-29 13:10:41 -07:00
|
|
|
aValue = Move(val);
|
2011-10-17 07:59:28 -07:00
|
|
|
aPreventCachingOfSandwich = false;
|
2010-02-18 13:51:00 -08:00
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsSMILValue
|
|
|
|
nsSVGViewBox::SMILViewBox::GetBaseValue() const
|
|
|
|
{
|
|
|
|
nsSMILValue val(&SVGViewBoxSMILType::sSingleton);
|
2010-03-26 12:24:07 -07:00
|
|
|
*static_cast<nsSVGViewBoxRect*>(val.mU.mPtr) = mVal->mBaseVal;
|
2010-02-18 13:51:00 -08:00
|
|
|
return val;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsSVGViewBox::SMILViewBox::ClearAnimValue()
|
|
|
|
{
|
|
|
|
if (mVal->mAnimVal) {
|
2012-07-30 07:20:58 -07:00
|
|
|
mVal->mAnimVal = nullptr;
|
2010-02-18 13:51:00 -08:00
|
|
|
mSVGElement->DidAnimateViewBox();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
|
|
|
nsSVGViewBox::SMILViewBox::SetAnimValue(const nsSMILValue& aValue)
|
|
|
|
{
|
|
|
|
NS_ASSERTION(aValue.mType == &SVGViewBoxSMILType::sSingleton,
|
|
|
|
"Unexpected type to assign animated value");
|
|
|
|
if (aValue.mType == &SVGViewBoxSMILType::sSingleton) {
|
|
|
|
nsSVGViewBoxRect &vb = *static_cast<nsSVGViewBoxRect*>(aValue.mU.mPtr);
|
2013-02-26 08:58:06 -08:00
|
|
|
mVal->SetAnimValue(vb, mSVGElement);
|
2010-02-18 13:51:00 -08:00
|
|
|
}
|
|
|
|
return NS_OK;
|
|
|
|
}
|