/src/mozilla-central/dom/svg/SVGAnimatedLength.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #include "mozilla/dom/SVGAnimatedLength.h" |
8 | | #include "mozilla/dom/SVGAnimatedLengthBinding.h" |
9 | | #include "nsSVGLength2.h" |
10 | | #include "DOMSVGLength.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(SVGAnimatedLength, mSVGElement) |
16 | | |
17 | | NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(SVGAnimatedLength, AddRef) |
18 | | NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(SVGAnimatedLength, Release) |
19 | | |
20 | | JSObject* |
21 | | SVGAnimatedLength::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) |
22 | 0 | { |
23 | 0 | return SVGAnimatedLength_Binding::Wrap(aCx, this, aGivenProto); |
24 | 0 | } |
25 | | |
26 | | already_AddRefed<DOMSVGLength> |
27 | | SVGAnimatedLength::BaseVal() |
28 | 0 | { |
29 | 0 | RefPtr<DOMSVGLength> angle; |
30 | 0 | mVal->ToDOMBaseVal(getter_AddRefs(angle), mSVGElement); |
31 | 0 | return angle.forget(); |
32 | 0 | } |
33 | | |
34 | | already_AddRefed<DOMSVGLength> |
35 | | SVGAnimatedLength::AnimVal() |
36 | 0 | { |
37 | 0 | RefPtr<DOMSVGLength> angle; |
38 | 0 | mVal->ToDOMAnimVal(getter_AddRefs(angle), mSVGElement); |
39 | 0 | return angle.forget(); |
40 | 0 | } |
41 | | |
42 | | } // namespace dom |
43 | | } // namespace mozilla |