| Index: Source/core/svg/SVGAnimatedString.cpp
|
| diff --git a/Source/core/svg/SVGAnimatedString.cpp b/Source/core/svg/SVGAnimatedString.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9dc3009f36f8d313ac32f808d9b5e0d595cf8f6c
|
| --- /dev/null
|
| +++ b/Source/core/svg/SVGAnimatedString.cpp
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "config.h"
|
| +#include "core/svg/SVGAnimatedString.h"
|
| +
|
| +#include "core/XLinkNames.h"
|
| +#include "core/frame/UseCounter.h"
|
| +#include "core/svg/SVGElement.h"
|
| +
|
| +namespace blink {
|
| +
|
| +String SVGAnimatedString::baseVal()
|
| +{
|
| + if (this->attributeName() == XLinkNames::hrefAttr)
|
| + UseCounter::count(this->contextElement()->document(), UseCounter::SVGHrefBaseVal);
|
| + return SVGAnimatedProperty<SVGString>::baseVal();
|
| +}
|
| +
|
| +void SVGAnimatedString::setBaseVal(String value, ExceptionState& exceptionState)
|
| +{
|
| + if (this->attributeName() == XLinkNames::hrefAttr)
|
| + UseCounter::count(this->contextElement()->document(), UseCounter::SVGHrefBaseVal);
|
| + return SVGAnimatedProperty<SVGString>::setBaseVal(value, exceptionState);
|
| +}
|
| +
|
| +String SVGAnimatedString::animVal()
|
| +{
|
| + if (this->attributeName() == XLinkNames::hrefAttr)
|
| + UseCounter::count(this->contextElement()->document(), UseCounter::SVGHrefAnimVal);
|
| + return SVGAnimatedProperty<SVGString>::animVal();
|
| +}
|
| +
|
| +} // namespace blink
|
|
|