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..0628979262603f4a67b850e01a425bc8811d0557 |
--- /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 { |
+ |
+WTF::String SVGAnimatedString::baseVal() |
+{ |
+ if (this->attributeName() == XLinkNames::hrefAttr) |
+ UseCounter::count(this->contextElement()->document(), UseCounter::SVGHrefBaseVal); |
+ return SVGAnimatedProperty<SVGString>::baseVal(); |
+} |
+ |
+void SVGAnimatedString::setBaseVal(WTF::String value, blink::ExceptionState& exceptionState) |
+{ |
+ if (this->attributeName() == XLinkNames::hrefAttr) |
+ UseCounter::count(this->contextElement()->document(), UseCounter::SVGHrefBaseVal); |
+ return SVGAnimatedProperty<SVGString>::setBaseVal(value, exceptionState); |
+} |
+ |
+WTF::String SVGAnimatedString::animVal() |
+{ |
+ if (this->attributeName() == XLinkNames::hrefAttr) |
+ UseCounter::count(this->contextElement()->document(), UseCounter::SVGHrefAnimVal); |
+ return SVGAnimatedProperty<SVGString>::animVal(); |
+} |
+ |
+} // namespace blink |