LCOV - code coverage report
Current view: top level - dom/svg - SVGCircleElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          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_SVGCircleElement_h
       8             : #define mozilla_dom_SVGCircleElement_h
       9             : 
      10             : #include "SVGGeometryElement.h"
      11             : #include "nsSVGLength2.h"
      12             : 
      13             : nsresult NS_NewSVGCircleElement(nsIContent **aResult,
      14             :                                 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      15             : 
      16             : namespace mozilla {
      17             : namespace dom {
      18             : 
      19             : typedef SVGGeometryElement SVGCircleElementBase;
      20             : 
      21           0 : class SVGCircleElement final : public SVGCircleElementBase
      22             : {
      23             : protected:
      24             :   explicit SVGCircleElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
      25             :   virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
      26             :   friend nsresult (::NS_NewSVGCircleElement(nsIContent **aResult,
      27             :                                             already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      28             : 
      29             : public:
      30             :   // nsSVGSVGElement methods:
      31             :   virtual bool HasValidDimensions() const override;
      32             : 
      33             :   // SVGGeometryElement methods:
      34             :   virtual bool GetGeometryBounds(Rect* aBounds, const StrokeOptions& aStrokeOptions,
      35             :                                  const Matrix& aToBoundsSpace,
      36             :                                  const Matrix* aToNonScalingStrokeSpace = nullptr) override;
      37             :   virtual already_AddRefed<Path> BuildPath(PathBuilder* aBuilder) override;
      38             : 
      39             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      40             :                          bool aPreallocateChildren) const override;
      41             : 
      42             :   // WebIDL
      43             :   already_AddRefed<SVGAnimatedLength> Cx();
      44             :   already_AddRefed<SVGAnimatedLength> Cy();
      45             :   already_AddRefed<SVGAnimatedLength> R();
      46             : 
      47             : protected:
      48             : 
      49             :   virtual LengthAttributesInfo GetLengthInfo() override;
      50             : 
      51             :   enum { ATTR_CX, ATTR_CY, ATTR_R };
      52             :   nsSVGLength2 mLengthAttributes[3];
      53             :   static LengthInfo sLengthInfo[3];
      54             : };
      55             : 
      56             : } // namespace dom
      57             : } // namespace mozilla
      58             : 
      59             : #endif // mozilla_dom_SVGCircleElement_h

Generated by: LCOV version 1.13