SVGDescElement.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef mozilla_dom_SVGDescElement_h
  6. #define mozilla_dom_SVGDescElement_h
  7. #include "mozilla/Attributes.h"
  8. #include "nsSVGElement.h"
  9. nsresult NS_NewSVGDescElement(nsIContent **aResult,
  10. already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
  11. typedef nsSVGElement SVGDescElementBase;
  12. namespace mozilla {
  13. namespace dom {
  14. class SVGDescElement final : public SVGDescElementBase
  15. {
  16. protected:
  17. friend nsresult (::NS_NewSVGDescElement(nsIContent **aResult,
  18. already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
  19. explicit SVGDescElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
  20. virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
  21. public:
  22. virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const override;
  23. };
  24. } // namespace dom
  25. } // namespace mozilla
  26. #endif // mozilla_dom_SVGDescElement_h