2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2013-01-20 00:56:00 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
#include "DOMSVGAnimatedLength.h"
|
|
|
|
|
2013-01-20 00:56:00 +04:00
|
|
|
#include "mozilla/dom/SVGAnimatedLengthBinding.h"
|
2019-04-09 23:04:33 +03:00
|
|
|
#include "SVGAnimatedLength.h"
|
2014-04-12 01:26:29 +04:00
|
|
|
#include "DOMSVGLength.h"
|
2013-01-20 00:56:00 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(DOMSVGAnimatedLength,
|
|
|
|
mSVGElement)
|
2013-01-20 00:56:00 +04:00
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMSVGAnimatedLength, AddRef)
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMSVGAnimatedLength, Release)
|
2013-01-20 00:56:00 +04:00
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
JSObject* DOMSVGAnimatedLength::WrapObject(JSContext* aCx,
|
|
|
|
JS::Handle<JSObject*> aGivenProto) {
|
2018-06-26 00:20:54 +03:00
|
|
|
return SVGAnimatedLength_Binding::Wrap(aCx, this, aGivenProto);
|
2013-01-20 00:56:00 +04:00
|
|
|
}
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
already_AddRefed<DOMSVGLength> DOMSVGAnimatedLength::BaseVal() {
|
2019-01-09 23:40:21 +03:00
|
|
|
return mVal->ToDOMBaseVal(mSVGElement);
|
2013-01-20 00:56:00 +04:00
|
|
|
}
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
already_AddRefed<DOMSVGLength> DOMSVGAnimatedLength::AnimVal() {
|
2019-01-09 23:40:21 +03:00
|
|
|
return mVal->ToDOMAnimVal(mSVGElement);
|
2013-01-20 00:56:00 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|