LCOV - code coverage report
Current view: top level - dom/svg - SVGForeignObjectElement.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_SVGForeignObjectElement_h
       8             : #define mozilla_dom_SVGForeignObjectElement_h
       9             : 
      10             : #include "mozilla/dom/SVGGraphicsElement.h"
      11             : #include "nsSVGLength2.h"
      12             : 
      13             : nsresult NS_NewSVGForeignObjectElement(nsIContent **aResult,
      14             :                                        already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      15             : 
      16             : class nsSVGForeignObjectFrame;
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21           0 : class SVGForeignObjectElement final : public SVGGraphicsElement
      22             : {
      23             :   friend class ::nsSVGForeignObjectFrame;
      24             : 
      25             : protected:
      26             :   friend nsresult (::NS_NewSVGForeignObjectElement(nsIContent **aResult,
      27             :                                                    already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      28             :   explicit SVGForeignObjectElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
      29             :   virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
      30             : 
      31             : public:
      32             :   // nsSVGElement specializations:
      33             :   virtual gfxMatrix PrependLocalTransformsTo(
      34             :     const gfxMatrix &aMatrix,
      35             :     SVGTransformTypes aWhich = eAllTransforms) const override;
      36             :   virtual bool HasValidDimensions() const override;
      37             : 
      38             :   // nsIContent interface
      39             :   virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent,
      40             :                               nsIContent* aBindingParent,
      41             :                               bool aCompileEventHandlers) override;
      42             :   NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* name) const override;
      43             : 
      44             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      45             :                          bool aPreallocateChildren) const override;
      46             : 
      47             :   // WebIDL
      48             :   already_AddRefed<SVGAnimatedLength> X();
      49             :   already_AddRefed<SVGAnimatedLength> Y();
      50             :   already_AddRefed<SVGAnimatedLength> Width();
      51             :   already_AddRefed<SVGAnimatedLength> Height();
      52             : 
      53             : protected:
      54             : 
      55             :   virtual LengthAttributesInfo GetLengthInfo() override;
      56             : 
      57             :   enum { ATTR_X, ATTR_Y, ATTR_WIDTH, ATTR_HEIGHT };
      58             :   nsSVGLength2 mLengthAttributes[4];
      59             :   static LengthInfo sLengthInfo[4];
      60             : };
      61             : 
      62             : } // namespace dom
      63             : } // namespace mozilla
      64             : 
      65             : #endif // mozilla_dom_SVGForeignObjectElement_h
      66             : 

Generated by: LCOV version 1.13