Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: Source/core/svg/SVGAnimatedString.cpp

Issue 1086873004: Add UseCounter for SVGURIReference.href.baseVal/animVal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix nit + rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGAnimatedString.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 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(String value, ExceptionState& exceptionState)
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 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
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatedString.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698