LCOV - code coverage report
Current view: top level - dom/svg - SVGRectElement.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_SVGRectElement_h
       8             : #define mozilla_dom_SVGRectElement_h
       9             : 
      10             : #include "nsSVGLength2.h"
      11             : #include "SVGGeometryElement.h"
      12             : 
      13             : nsresult NS_NewSVGRectElement(nsIContent **aResult,
      14             :                               already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      15             : 
      16             : namespace mozilla {
      17             : namespace dom {
      18             : 
      19             : typedef SVGGeometryElement SVGRectElementBase;
      20             : 
      21           0 : class SVGRectElement final : public SVGRectElementBase
      22             : {
      23             : protected:
      24             :   explicit SVGRectElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
      25             :   virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
      26             :   friend nsresult (::NS_NewSVGRectElement(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 void GetAsSimplePath(SimplePath* aSimplePath) override;
      38             :   virtual already_AddRefed<Path> BuildPath(PathBuilder* aBuilder = nullptr) override;
      39             : 
      40             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      41             :                          bool aPreallocateChildren) const override;
      42             : 
      43             :   // WebIDL
      44             :   already_AddRefed<SVGAnimatedLength> X();
      45             :   already_AddRefed<SVGAnimatedLength> Y();
      46             :   already_AddRefed<SVGAnimatedLength> Height();
      47             :   already_AddRefed<SVGAnimatedLength> Width();
      48             :   already_AddRefed<SVGAnimatedLength> Rx();
      49             :   already_AddRefed<SVGAnimatedLength> Ry();
      50             : 
      51             : protected:
      52             : 
      53             :   virtual LengthAttributesInfo GetLengthInfo() override;
      54             : 
      55             :   enum { ATTR_X, ATTR_Y, ATTR_WIDTH, ATTR_HEIGHT, ATTR_RX, ATTR_RY };
      56             :   nsSVGLength2 mLengthAttributes[6];
      57             :   static LengthInfo sLengthInfo[6];
      58             : };
      59             : 
      60             : } // namespace dom
      61             : } // namespace mozilla
      62             : 
      63             : #endif // mozilla_dom_SVGRectElement_h

Generated by: LCOV version 1.13