LCOV - code coverage report
Current view: top level - layout/generic - nsRubyTextFrame.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 7 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 5 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             : /* vim: set ts=2 et sw=2 tw=80: */
       3             : /* This Source Code is subject to the terms of the Mozilla Public License
       4             :  * version 2.0 (the "License"). You can obtain a copy of the License at
       5             :  * http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : /* rendering object for CSS "display: ruby-text" */
       8             : 
       9             : #ifndef nsRubyTextFrame_h___
      10             : #define nsRubyTextFrame_h___
      11             : 
      12             : #include "nsRubyContentFrame.h"
      13             : 
      14             : /**
      15             :  * Factory function.
      16             :  * @return a newly allocated nsRubyTextFrame (infallible)
      17             :  */
      18             : nsContainerFrame* NS_NewRubyTextFrame(nsIPresShell* aPresShell,
      19             :                                       nsStyleContext* aContext);
      20             : 
      21           0 : class nsRubyTextFrame final : public nsRubyContentFrame
      22             : {
      23             : public:
      24           0 :   NS_DECL_FRAMEARENA_HELPERS(nsRubyTextFrame)
      25             :   NS_DECL_QUERYFRAME
      26             : 
      27             :   // nsIFrame overrides
      28             :   virtual bool CanContinueTextRun() const override;
      29             : 
      30             : #ifdef DEBUG_FRAME_DUMP
      31             :   virtual nsresult GetFrameName(nsAString& aResult) const override;
      32             : #endif
      33             : 
      34             :   virtual void BuildDisplayList(nsDisplayListBuilder*   aBuilder,
      35             :                                 const nsRect&           aDirtyRect,
      36             :                                 const nsDisplayListSet& aLists) override;
      37             : 
      38             :   virtual void Reflow(nsPresContext* aPresContext,
      39             :                       ReflowOutput& aDesiredSize,
      40             :                       const ReflowInput& aReflowInput,
      41             :                       nsReflowStatus& aStatus) override;
      42             : 
      43           0 :   bool IsAutoHidden() const
      44             :   {
      45           0 :     return GetStateBits() & NS_RUBY_TEXT_FRAME_AUTOHIDE;
      46             :   }
      47             : 
      48             : protected:
      49             :   friend nsContainerFrame* NS_NewRubyTextFrame(nsIPresShell* aPresShell,
      50             :                                                nsStyleContext* aContext);
      51           0 :   explicit nsRubyTextFrame(nsStyleContext* aContext)
      52           0 :     : nsRubyContentFrame(aContext, kClassID)
      53           0 :   {}
      54             : };
      55             : 
      56             : #endif /* nsRubyTextFrame_h___ */

Generated by: LCOV version 1.13