Bug 1859954 - Use XP_DARWIN rather than XP_MACOS in PHC r=glandium
[gecko.git] / widget / ThemeChangeKind.h
blob2300ea648b70bf5753e1fc92d1eb8a9f2074343e
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/. */
7 #ifndef mozilla_widget_ThemeChangeKind
8 #define mozilla_widget_ThemeChangeKind
10 #include "mozilla/TypedEnumBits.h"
12 namespace mozilla::widget {
14 enum class ThemeChangeKind : uint8_t {
15 // This is the cheapest change, no need to forcibly recompute style and/or
16 // layout.
17 MediaQueriesOnly = 0,
18 // Style needs to forcibly be recomputed because some of the stuff that may
19 // have changed, like system colors, are reflected in the computed style but
20 // not in the specified style.
21 Style = 1 << 0,
22 // Layout needs to forcibly be recomputed because some of the stuff that may
23 // have changed is layout-dependent, like system font.
24 Layout = 1 << 1,
25 // The union of the two flags above.
26 StyleAndLayout = Style | Layout,
27 // For IPC serialization purposes.
28 AllBits = Style | Layout,
31 MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(ThemeChangeKind)
33 } // namespace mozilla::widget
35 #endif