Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 : /* This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this
5 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : #ifndef mozilla_dom_SVGPolylineElement_h
8 : #define mozilla_dom_SVGPolylineElement_h
9 :
10 : #include "SVGPolyElement.h"
11 :
12 : nsresult NS_NewSVGPolylineElement(nsIContent **aResult,
13 : already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
14 :
15 : namespace mozilla {
16 : namespace dom {
17 :
18 : typedef SVGPolyElement SVGPolylineElementBase;
19 :
20 0 : class SVGPolylineElement final : public SVGPolylineElementBase
21 : {
22 : protected:
23 : explicit SVGPolylineElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
24 : virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
25 : friend nsresult (::NS_NewSVGPolylineElement(nsIContent **aResult,
26 : already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
27 :
28 : // SVGGeometryElement methods:
29 : virtual already_AddRefed<Path> BuildPath(PathBuilder* aBuilder) override;
30 :
31 : public:
32 : // nsIContent interface
33 : virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
34 : bool aPreallocateChildren) const override;
35 : };
36 :
37 : } // namespace dom
38 : } // namespace mozilla
39 :
40 : #endif // mozilla_dom_SVGPolylineElement_h
|