Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | /* enum types for CSS properties and their values */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef nsCSSProperty_h___ |
michael@0 | 9 | #define nsCSSProperty_h___ |
michael@0 | 10 | |
michael@0 | 11 | /* |
michael@0 | 12 | Declare the enum list using the magic of preprocessing |
michael@0 | 13 | enum values are "eCSSProperty_foo" (where foo is the property) |
michael@0 | 14 | |
michael@0 | 15 | To change the list of properties, see nsCSSPropList.h |
michael@0 | 16 | |
michael@0 | 17 | */ |
michael@0 | 18 | enum nsCSSProperty { |
michael@0 | 19 | eCSSProperty_UNKNOWN = -1, |
michael@0 | 20 | |
michael@0 | 21 | #define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, \ |
michael@0 | 22 | kwtable_, stylestruct_, stylestructoffset_, animtype_) \ |
michael@0 | 23 | eCSSProperty_##id_, |
michael@0 | 24 | #include "nsCSSPropList.h" |
michael@0 | 25 | #undef CSS_PROP |
michael@0 | 26 | |
michael@0 | 27 | eCSSProperty_COUNT_no_shorthands, |
michael@0 | 28 | // Make the count continue where it left off: |
michael@0 | 29 | eCSSProperty_COUNT_DUMMY = eCSSProperty_COUNT_no_shorthands - 1, |
michael@0 | 30 | |
michael@0 | 31 | #define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) \ |
michael@0 | 32 | eCSSProperty_##id_, |
michael@0 | 33 | #include "nsCSSPropList.h" |
michael@0 | 34 | #undef CSS_PROP_SHORTHAND |
michael@0 | 35 | |
michael@0 | 36 | eCSSProperty_COUNT, |
michael@0 | 37 | // Make the count continue where it left off: |
michael@0 | 38 | eCSSProperty_COUNT_DUMMY2 = eCSSProperty_COUNT - 1, |
michael@0 | 39 | |
michael@0 | 40 | #define CSS_PROP_ALIAS(aliasname_, id_, method_, pref_) \ |
michael@0 | 41 | eCSSPropertyAlias_##method_, |
michael@0 | 42 | #include "nsCSSPropAliasList.h" |
michael@0 | 43 | #undef CSS_PROP_ALIAS |
michael@0 | 44 | |
michael@0 | 45 | eCSSProperty_COUNT_with_aliases, |
michael@0 | 46 | // Make the count continue where it left off: |
michael@0 | 47 | eCSSProperty_COUNT_DUMMY3 = eCSSProperty_COUNT_with_aliases - 1, |
michael@0 | 48 | |
michael@0 | 49 | // Some of the values below could probably overlap with each other |
michael@0 | 50 | // if we had a need for them to do so. |
michael@0 | 51 | |
michael@0 | 52 | // Extra values for use in the values of the 'transition-property' |
michael@0 | 53 | // property. |
michael@0 | 54 | eCSSPropertyExtra_no_properties, |
michael@0 | 55 | eCSSPropertyExtra_all_properties, |
michael@0 | 56 | |
michael@0 | 57 | // Extra dummy values for nsCSSParser internal use. |
michael@0 | 58 | eCSSPropertyExtra_x_none_value, |
michael@0 | 59 | eCSSPropertyExtra_x_auto_value, |
michael@0 | 60 | |
michael@0 | 61 | // Extra value to represent custom properties (--*). |
michael@0 | 62 | eCSSPropertyExtra_variable |
michael@0 | 63 | }; |
michael@0 | 64 | |
michael@0 | 65 | // The "descriptors" that can appear in a @font-face rule. |
michael@0 | 66 | // They have the syntax of properties but different value rules. |
michael@0 | 67 | enum nsCSSFontDesc { |
michael@0 | 68 | eCSSFontDesc_UNKNOWN = -1, |
michael@0 | 69 | #define CSS_FONT_DESC(name_, method_) eCSSFontDesc_##method_, |
michael@0 | 70 | #include "nsCSSFontDescList.h" |
michael@0 | 71 | #undef CSS_FONT_DESC |
michael@0 | 72 | eCSSFontDesc_COUNT |
michael@0 | 73 | }; |
michael@0 | 74 | |
michael@0 | 75 | #endif /* nsCSSProperty_h___ */ |