LCOV - code coverage report
Current view: top level - layout/xul/tree - nsTreeColFrame.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 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: 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             : #include "mozilla/Attributes.h"
       7             : #include "nsBoxFrame.h"
       8             : 
       9             : class nsITreeBoxObject;
      10             : 
      11             : nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
      12             :                              nsStyleContext* aContext);
      13             : 
      14             : class nsTreeColFrame final : public nsBoxFrame
      15             : {
      16             : public:
      17           0 :   NS_DECL_FRAMEARENA_HELPERS(nsTreeColFrame)
      18             : 
      19           0 :   explicit nsTreeColFrame(nsStyleContext* aContext):
      20           0 :     nsBoxFrame(aContext, kClassID) {}
      21             : 
      22             :   virtual void Init(nsIContent*       aContent,
      23             :                     nsContainerFrame* aParent,
      24             :                     nsIFrame*         aPrevInFlow) override;
      25             : 
      26             :   virtual void DestroyFrom(nsIFrame* aDestructRoot) override;
      27             : 
      28             :   virtual void BuildDisplayListForChildren(nsDisplayListBuilder*   aBuilder,
      29             :                                            const nsRect&           aDirtyRect,
      30             :                                            const nsDisplayListSet& aLists) override;
      31             : 
      32             :   virtual nsresult AttributeChanged(int32_t aNameSpaceID,
      33             :                                     nsIAtom* aAttribute,
      34             :                                     int32_t aModType) override;
      35             : 
      36             :   virtual void SetXULBounds(nsBoxLayoutState& aBoxLayoutState, const nsRect& aRect,
      37             :                             bool aRemoveOverflowArea = false) override;
      38             : 
      39             :   friend nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
      40             :                                       nsStyleContext* aContext);
      41             : 
      42             : protected:
      43             :   virtual ~nsTreeColFrame();
      44             : 
      45             :   /**
      46             :    * @return the tree box object of the tree this column belongs to, or nullptr.
      47             :    */
      48             :   nsITreeBoxObject* GetTreeBoxObject();
      49             : 
      50             :   /**
      51             :    * Helper method that gets the nsITreeColumns object this column belongs to
      52             :    * and calls InvalidateColumns() on it.
      53             :    */
      54             :   void InvalidateColumns(bool aCanWalkFrameTree = true);
      55             : };

Generated by: LCOV version 1.13