LCOV - code coverage report
Current view: top level - layout/svg - nsSVGGFrame.h (source / functions) Hit Total Coverage
Test: output.info Lines: 6 9 66.7 %
Date: 2017-07-14 16:53:18 Functions: 3 6 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; 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             : 
       6             : #ifndef NSSVGGFRAME_H
       7             : #define NSSVGGFRAME_H
       8             : 
       9             : #include "mozilla/Attributes.h"
      10             : #include "gfxMatrix.h"
      11             : #include "nsAutoPtr.h"
      12             : #include "nsSVGContainerFrame.h"
      13             : 
      14           0 : class nsSVGGFrame : public nsSVGDisplayContainerFrame
      15             : {
      16             :   friend nsIFrame*
      17             :   NS_NewSVGGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
      18          11 :   explicit nsSVGGFrame(nsStyleContext* aContext)
      19          11 :     : nsSVGGFrame(aContext, kClassID) {}
      20             : 
      21             : protected:
      22          34 :   nsSVGGFrame(nsStyleContext* aContext, nsIFrame::ClassID aID)
      23          34 :     : nsSVGDisplayContainerFrame(aContext, aID)
      24          34 :   {}
      25             : 
      26             : public:
      27          33 :   NS_DECL_FRAMEARENA_HELPERS(nsSVGGFrame)
      28             : 
      29             : #ifdef DEBUG
      30             :   virtual void Init(nsIContent*       aContent,
      31             :                     nsContainerFrame* aParent,
      32             :                     nsIFrame*         aPrevInFlow) override;
      33             : #endif
      34             : 
      35             : #ifdef DEBUG_FRAME_DUMP
      36           0 :   virtual nsresult GetFrameName(nsAString& aResult) const override
      37             :   {
      38           0 :     return MakeFrameName(NS_LITERAL_STRING("SVGG"), aResult);
      39             :   }
      40             : #endif
      41             : 
      42             :   // nsIFrame interface:
      43             :   virtual nsresult AttributeChanged(int32_t         aNameSpaceID,
      44             :                                     nsIAtom*        aAttribute,
      45             :                                     int32_t         aModType) override;
      46             : 
      47             :   // nsSVGDisplayableFrame interface:
      48             :   virtual void NotifySVGChanged(uint32_t aFlags) override;
      49             : 
      50             :   // nsSVGContainerFrame methods:
      51             :   virtual gfxMatrix GetCanvasTM() override;
      52             : 
      53             :   nsAutoPtr<gfxMatrix> mCanvasTM;
      54             : };
      55             : 
      56             : #endif

Generated by: LCOV version 1.13