SVGPolylineElement.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_SVGPolylineElement_h
  6. #define mozilla_dom_SVGPolylineElement_h
  7. #include "nsSVGPolyElement.h"
  8. nsresult NS_NewSVGPolylineElement(nsIContent **aResult,
  9. already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
  10. typedef nsSVGPolyElement SVGPolylineElementBase;
  11. namespace mozilla {
  12. namespace dom {
  13. class SVGPolylineElement final : public SVGPolylineElementBase
  14. {
  15. protected:
  16. explicit SVGPolylineElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
  17. virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
  18. friend nsresult (::NS_NewSVGPolylineElement(nsIContent **aResult,
  19. already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
  20. // nsSVGPathGeometryElement methods:
  21. virtual already_AddRefed<Path> BuildPath(PathBuilder* aBuilder) override;
  22. public:
  23. // nsIContent interface
  24. virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const override;
  25. };
  26. } // namespace dom
  27. } // namespace mozilla
  28. #endif // mozilla_dom_SVGPolylineElement_h