OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "core/svg/SVGAnimatedString.h" |
| 7 |
| 8 #include "core/XLinkNames.h" |
| 9 #include "core/frame/UseCounter.h" |
| 10 #include "core/svg/SVGElement.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 WTF::String SVGAnimatedString::baseVal() |
| 15 { |
| 16 if (this->attributeName() == XLinkNames::hrefAttr) |
| 17 UseCounter::count(this->contextElement()->document(), UseCounter::SVGHre
fBaseVal); |
| 18 return SVGAnimatedProperty<SVGString>::baseVal(); |
| 19 } |
| 20 |
| 21 void SVGAnimatedString::setBaseVal(WTF::String value, blink::ExceptionState& exc
eptionState) |
| 22 { |
| 23 if (this->attributeName() == XLinkNames::hrefAttr) |
| 24 UseCounter::count(this->contextElement()->document(), UseCounter::SVGHre
fBaseVal); |
| 25 return SVGAnimatedProperty<SVGString>::setBaseVal(value, exceptionState); |
| 26 } |
| 27 |
| 28 WTF::String SVGAnimatedString::animVal() |
| 29 { |
| 30 if (this->attributeName() == XLinkNames::hrefAttr) |
| 31 UseCounter::count(this->contextElement()->document(), UseCounter::SVGHre
fAnimVal); |
| 32 return SVGAnimatedProperty<SVGString>::animVal(); |
| 33 } |
| 34 |
| 35 } // namespace blink |
OLD | NEW |