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: */
|
2012-12-23 08:54:23 +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 "DOMSVGAnimatedAngle.h"
|
|
|
|
|
2019-04-04 20:40:56 +03:00
|
|
|
#include "SVGAnimatedOrient.h"
|
2012-12-23 08:54:23 +04:00
|
|
|
#include "mozilla/dom/SVGAnimatedAngleBinding.h"
|
|
|
|
|
2019-09-21 17:38:56 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2012-12-23 08:54:23 +04:00
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(DOMSVGAnimatedAngle, mSVGElement)
|
2012-12-23 08:54:23 +04:00
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMSVGAnimatedAngle, AddRef)
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMSVGAnimatedAngle, Release)
|
2012-12-23 08:54:23 +04:00
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
JSObject* DOMSVGAnimatedAngle::WrapObject(JSContext* aCx,
|
|
|
|
JS::Handle<JSObject*> aGivenProto) {
|
2018-06-26 00:20:54 +03:00
|
|
|
return SVGAnimatedAngle_Binding::Wrap(aCx, this, aGivenProto);
|
2012-12-23 08:54:23 +04:00
|
|
|
}
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
already_AddRefed<DOMSVGAngle> DOMSVGAnimatedAngle::BaseVal() {
|
2013-01-30 10:31:11 +04:00
|
|
|
return mVal->ToDOMBaseVal(mSVGElement);
|
2012-12-23 08:54:23 +04:00
|
|
|
}
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
already_AddRefed<DOMSVGAngle> DOMSVGAnimatedAngle::AnimVal() {
|
2013-01-30 10:31:11 +04:00
|
|
|
return mVal->ToDOMAnimVal(mSVGElement);
|
2012-12-23 08:54:23 +04:00
|
|
|
}
|
2019-09-21 17:38:56 +03:00
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|