2015-05-03 19:32:37 +00: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-05-09 17:42:12 +00: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/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_SVGAnimatedRect_h
|
|
|
|
#define mozilla_dom_SVGAnimatedRect_h
|
|
|
|
|
|
|
|
#include "nsCycleCollectionParticipant.h"
|
|
|
|
#include "mozilla/dom/SVGRectBinding.h"
|
|
|
|
#include "mozilla/Attributes.h"
|
|
|
|
#include "mozilla/ErrorResult.h"
|
|
|
|
#include "nsWrapperCache.h"
|
2013-08-23 05:17:11 +00:00
|
|
|
#include "nsSVGElement.h"
|
2013-05-09 17:42:12 +00:00
|
|
|
|
|
|
|
class nsSVGViewBox;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
class SVGAnimatedRect final : public nsWrapperCache
|
2013-05-09 17:42:12 +00:00
|
|
|
{
|
|
|
|
public:
|
2013-07-23 08:34:17 +00:00
|
|
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(SVGAnimatedRect)
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(SVGAnimatedRect)
|
2013-05-09 17:42:12 +00:00
|
|
|
|
|
|
|
SVGAnimatedRect(nsSVGViewBox* aVal, nsSVGElement* aSVGElement);
|
|
|
|
|
|
|
|
nsSVGElement* GetParentObject() const
|
|
|
|
{
|
|
|
|
return mSVGElement;
|
|
|
|
}
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
2013-05-09 17:42:12 +00:00
|
|
|
|
2013-05-20 11:46:12 +00:00
|
|
|
already_AddRefed<SVGIRect> GetBaseVal();
|
2013-05-09 17:42:12 +00:00
|
|
|
|
2013-05-20 11:46:12 +00:00
|
|
|
already_AddRefed<SVGIRect> GetAnimVal();
|
2013-05-09 17:42:12 +00:00
|
|
|
|
|
|
|
private:
|
2014-06-24 16:36:45 +00:00
|
|
|
virtual ~SVGAnimatedRect();
|
|
|
|
|
2013-05-09 17:42:12 +00:00
|
|
|
nsSVGViewBox* mVal; // kept alive because it belongs to content
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<nsSVGElement> mSVGElement;
|
2013-05-09 17:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_SVGAnimatedRect_h
|
|
|
|
|