SVGAnimatedNumber.cpp 1009 B

1234567891011121314151617181920212223242526272829303132
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "mozilla/dom/SVGAnimatedNumber.h"
  6. #include "mozilla/dom/SVGAnimatedNumberBinding.h"
  7. namespace mozilla {
  8. namespace dom {
  9. NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(SVGAnimatedNumber,
  10. mSVGElement)
  11. NS_IMPL_CYCLE_COLLECTING_ADDREF(SVGAnimatedNumber)
  12. NS_IMPL_CYCLE_COLLECTING_RELEASE(SVGAnimatedNumber)
  13. NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(SVGAnimatedNumber)
  14. NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
  15. NS_INTERFACE_MAP_ENTRY(nsISupports)
  16. NS_INTERFACE_MAP_END
  17. JSObject*
  18. SVGAnimatedNumber::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
  19. {
  20. return SVGAnimatedNumberBinding::Wrap(aCx, this, aGivenProto);
  21. }
  22. } // namespace dom
  23. } // namespace mozilla