LCOV - code coverage report
Current view: top level - dom/base - FlushType.h (source / functions) Hit Total Coverage
Test: output.info Lines: 4 4 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.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_FlushType_h
       8             : #define mozilla_FlushType_h
       9             : 
      10             : #include <stdint.h>
      11             : #include "X11UndefineNone.h"
      12             : 
      13             : namespace mozilla {
      14             : 
      15             : /**
      16             :  * This is the enum used by nsIDocument::FlushPendingNotifications to
      17             :  * decide what to flush.
      18             :  *
      19             :  * Please note that if you change these values, you should sync it with the
      20             :  * flushTypeNames array inside PresShell::FlushPendingNotifications.
      21             :  */
      22             : enum class FlushType : uint8_t {
      23             :   None             = 0, /* Actually don't flush anything */
      24             :   Content          = 1, /* flush the content model construction */
      25             :   ContentAndNotify = 2, /* As above, plus flush the frame model
      26             :                            construction and other nsIMutationObserver
      27             :                            notifications. */
      28             :   Style            = 3, /* As above, plus flush style reresolution */
      29             :   Frames           = Style,
      30             :   EnsurePresShellInitAndFrames = 4, /* As above, plus ensure the pres shell is alive */
      31             :   InterruptibleLayout = 5, /* As above, plus flush reflow,
      32             :                               but allow it to be interrupted (so
      33             :                               an incomplete layout may result) */
      34             :   Layout           = 6, /* As above, but layout must run to
      35             :                            completion */
      36             :   Display          = 7, /* As above, plus flush painting */
      37             : 
      38             :   Count
      39             : };
      40             : 
      41             : struct ChangesToFlush {
      42         141 :   ChangesToFlush(FlushType aFlushType, bool aFlushAnimations)
      43         141 :     : mFlushType(aFlushType)
      44         141 :     , mFlushAnimations(aFlushAnimations)
      45         141 :   {}
      46             : 
      47             :   FlushType mFlushType;
      48             :   bool mFlushAnimations;
      49             : };
      50             : 
      51             : } // namespace mozilla
      52             : 
      53             : #endif // mozilla_FlushType_h

Generated by: LCOV version 1.13