dom/webidl/CSS2PropertiesProps.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 /* A file meant as input to the preprocessor only */
     3 /* DO_PROP serves as an extra level of indirection to allow expansion
     4    of CSS_PROP_DOMPROP_PREFIXED */
     6 [
     8 #define PROP_STRINGIFY_INTERNAL(X) #X
     9 #define PROP_STRINGIFY(X) PROP_STRINGIFY_INTERNAL(X)
    11 #define DO_PROP(method, id, flags, pref) \
    12   [ #method, #id, PROP_STRINGIFY(flags), pref ],
    13 #define CSS_PROP(name, id, method, flags, pref, parsevariant, kwtable, \
    14 		 stylestruct, stylestructofset, animtype) \
    15   DO_PROP(method, id, flags, pref)
    16 #define CSS_PROP_SHORTHAND(name, id, method, flags, pref) \
    17   DO_PROP(method, id, flags, pref)
    18 #define CSS_PROP_PUBLIC_OR_PRIVATE(publicname_, privatename_) publicname_
    19 #define CSS_PROP_LIST_EXCLUDE_INTERNAL
    21 #include "nsCSSPropList.h"
    23 #undef CSS_PROP_LIST_EXCLUDE_INTERNAL
    24 #undef CSS_PROP_PUBLIC_OR_PRIVATE
    25 #undef CSS_PROP_SHORTHAND
    26 #undef CSS_PROP
    28 #define CSS_PROP_ALIAS(name, id, method, pref) \
    29   DO_PROP(method, id, 0, pref)
    31 #include "nsCSSPropAliasList.h"
    33 #undef CSS_PROP_ALIAS
    35 #undef DO_PROP
    36 #undef PROP_STRINGIFY
    37 #undef PROP_STRINGIFY_INTERNAL
    39 ]

mercurial