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/. */
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"
19 enum class CSSEnabledState
{
20 // The default CSSEnabledState: only enable what's enabled for all
21 // content, given the current values of preferences.
23 // Enable features available in UA sheets.
25 // Enable features available in chrome code.
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