| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/svg/SVGAnimatedString.h" | 5 #include "core/svg/SVGAnimatedString.h" |
| 6 | 6 |
| 7 #include "core/XLinkNames.h" | |
| 8 #include "core/frame/UseCounter.h" | |
| 9 #include "core/svg/SVGElement.h" | |
| 10 | |
| 11 namespace blink { | 7 namespace blink { |
| 12 | 8 |
| 13 String SVGAnimatedString::baseVal() | 9 String SVGAnimatedString::baseVal() |
| 14 { | 10 { |
| 15 if (this->attributeName() == XLinkNames::hrefAttr) | |
| 16 UseCounter::count(this->contextElement()->document(), UseCounter::SVGHre
fBaseVal); | |
| 17 return SVGAnimatedProperty<SVGString>::baseVal(); | 11 return SVGAnimatedProperty<SVGString>::baseVal(); |
| 18 } | 12 } |
| 19 | 13 |
| 20 void SVGAnimatedString::setBaseVal(String value, ExceptionState& exceptionState) | 14 void SVGAnimatedString::setBaseVal(const String& value, ExceptionState& exceptio
nState) |
| 21 { | 15 { |
| 22 if (this->attributeName() == XLinkNames::hrefAttr) | |
| 23 UseCounter::count(this->contextElement()->document(), UseCounter::SVGHre
fBaseVal); | |
| 24 return SVGAnimatedProperty<SVGString>::setBaseVal(value, exceptionState); | 16 return SVGAnimatedProperty<SVGString>::setBaseVal(value, exceptionState); |
| 25 } | 17 } |
| 26 | 18 |
| 27 String SVGAnimatedString::animVal() | 19 String SVGAnimatedString::animVal() |
| 28 { | 20 { |
| 29 if (this->attributeName() == XLinkNames::hrefAttr) | |
| 30 UseCounter::count(this->contextElement()->document(), UseCounter::SVGHre
fAnimVal); | |
| 31 return SVGAnimatedProperty<SVGString>::animVal(); | 21 return SVGAnimatedProperty<SVGString>::animVal(); |
| 32 } | 22 } |
| 33 | 23 |
| 34 } // namespace blink | 24 } // namespace blink |
| OLD | NEW |