SVGSetElement.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/SVGSetElement.h"
  6. #include "mozilla/dom/SVGSetElementBinding.h"
  7. NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(Set)
  8. namespace mozilla {
  9. namespace dom {
  10. JSObject*
  11. SVGSetElement::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
  12. {
  13. return SVGSetElementBinding::Wrap(aCx, this, aGivenProto);
  14. }
  15. //----------------------------------------------------------------------
  16. // Implementation
  17. SVGSetElement::SVGSetElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
  18. : SVGAnimationElement(aNodeInfo)
  19. {
  20. }
  21. //----------------------------------------------------------------------
  22. // nsIDOMNode methods
  23. NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGSetElement)
  24. //----------------------------------------------------------------------
  25. nsSMILAnimationFunction&
  26. SVGSetElement::AnimationFunction()
  27. {
  28. return mAnimationFunction;
  29. }
  30. } // namespace dom
  31. } // namespace mozilla