LCOV - code coverage report
Current view: top level - layout/base - nsIPresShellInlines.h (source / functions) Hit Total Coverage
Test: output.info Lines: 8 22 36.4 %
Date: 2017-07-14 16:53:18 Functions: 2 4 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef nsIPresShellInlines_h
       2             : #define nsIPresShellInlines_h
       3             : 
       4             : #include "nsIDocument.h"
       5             : 
       6             : void
       7         315 : nsIPresShell::SetNeedLayoutFlush()
       8             : {
       9         315 :   mNeedLayoutFlush = true;
      10         315 :   if (nsIDocument* doc = mDocument->GetDisplayDocument()) {
      11           0 :     if (nsIPresShell* shell = doc->GetShell()) {
      12           0 :       shell->mNeedLayoutFlush = true;
      13             :     }
      14             :   }
      15         315 : }
      16             : 
      17             : void
      18         597 : nsIPresShell::SetNeedStyleFlush()
      19             : {
      20         597 :   mNeedStyleFlush = true;
      21         597 :   if (nsIDocument* doc = mDocument->GetDisplayDocument()) {
      22           0 :     if (nsIPresShell* shell = doc->GetShell()) {
      23           0 :       shell->mNeedStyleFlush = true;
      24             :     }
      25             :   }
      26         597 : }
      27             : 
      28             : void
      29           0 : nsIPresShell::EnsureStyleFlush()
      30             : {
      31           0 :   SetNeedStyleFlush();
      32           0 :   ObserveStyleFlushes();
      33           0 : }
      34             : 
      35             : void
      36           0 : nsIPresShell::SetNeedThrottledAnimationFlush()
      37             : {
      38           0 :   mNeedThrottledAnimationFlush = true;
      39           0 :   if (nsIDocument* doc = mDocument->GetDisplayDocument()) {
      40           0 :     if (nsIPresShell* shell = doc->GetShell()) {
      41           0 :       shell->mNeedThrottledAnimationFlush = true;
      42             :     }
      43             :   }
      44           0 : }
      45             : 
      46             : #endif // nsIPresShellInlines_h

Generated by: LCOV version 1.13