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 #ifndef mozFlushType_h___
6 #define mozFlushType_h___
9 * This is the enum used by nsIDocument::FlushPendingNotifications to
10 * decide what to flush.
12 * Please note that if you change these values, you should sync it with the
13 * flushTypeNames array inside PresShell::FlushPendingNotifications.
16 Flush_None
= 0, /* Actually don't flush anything */
17 Flush_Content
= 1, /* flush the content model construction */
18 Flush_ContentAndNotify
= 2, /* As above, plus flush the frame model
19 construction and other nsIMutationObserver
21 Flush_Style
= 3, /* As above, plus flush style reresolution */
22 Flush_Frames
= Flush_Style
,
23 Flush_InterruptibleLayout
= 4, /* As above, plus flush reflow,
24 but allow it to be interrupted (so
25 an incomplete layout may result) */
26 Flush_Layout
= 5, /* As above, but layout must run to
28 Flush_Display
= 6 /* As above, plus flush painting */
33 struct ChangesToFlush
{
34 ChangesToFlush(mozFlushType aFlushType
, bool aFlushAnimations
)
35 : mFlushType(aFlushType
)
36 , mFlushAnimations(aFlushAnimations
)
39 mozFlushType mFlushType
;
40 bool mFlushAnimations
;
44 #endif /* mozFlushType_h___ */