Bug 1839315: part 4) Link from `SheetLoadData::mWasAlternate` to spec. r=emilio DONTBUILD
[gecko.git] / layout / style / CSSEnabledState.h
blobb8793d16431d52a55ace57f7394cec487417b2e8
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 /*
8 * enum for whether a CSS feature (property, pseudo-class, etc.) is
9 * enabled in a specific context
12 #ifndef mozilla_CSSEnabledState_h
13 #define mozilla_CSSEnabledState_h
15 #include "mozilla/TypedEnumBits.h"
17 namespace mozilla {
19 enum class CSSEnabledState {
20 // The default CSSEnabledState: only enable what's enabled for all
21 // content, given the current values of preferences.
22 ForAllContent = 0,
23 // Enable features available in UA sheets.
24 InUASheets = 0x01,
25 // Enable features available in chrome code.
26 InChrome = 0x02,
27 // Special value to unconditionally enable everything. This implies
28 // all the bits above, but is strictly more than just their OR-ed
29 // union. This just skips any test so a feature will be enabled even
30 // if it would have been disabled with all the bits above set.
31 IgnoreEnabledState = 0xff
34 MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(CSSEnabledState)
36 } // namespace mozilla
38 #endif // mozilla_CSSEnabledState_h