PythonCSSProps.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* A file meant as input to the preprocessor only */
  2. /* DO_PROP serves as an extra level of indirection to allow expansion
  3. of CSS_PROP_DOMPROP_PREFIXED */
  4. [
  5. #define PROP_STRINGIFY_INTERNAL(X) #X
  6. #define PROP_STRINGIFY(X) PROP_STRINGIFY_INTERNAL(X)
  7. #define DO_PROP(name, method, id, flags, pref, proptype) \
  8. [ #name, #method, #id, PROP_STRINGIFY(flags), pref, proptype ],
  9. #define CSS_PROP(name, id, method, flags, pref, parsevariant, kwtable, \
  10. stylestruct, stylestructoffset, animtype) \
  11. DO_PROP(name, method, id, flags, pref, "longhand")
  12. #define CSS_PROP_SHORTHAND(name, id, method, flags, pref) \
  13. DO_PROP(name, method, id, flags, pref, "shorthand")
  14. #define CSS_PROP_LOGICAL(name, id, method, flags, pref, parsevariant, kwtable, \
  15. group, stylestruct, stylestructoffset, animtype) \
  16. DO_PROP(name, method, id, flags, pref, "logical")
  17. #define CSS_PROP_PUBLIC_OR_PRIVATE(publicname_, privatename_) publicname_
  18. #include "nsCSSPropList.h"
  19. #undef CSS_PROP_PUBLIC_OR_PRIVATE
  20. #undef CSS_PROP_LOGICAL
  21. #undef CSS_PROP_SHORTHAND
  22. #undef CSS_PROP
  23. #define CSS_PROP_ALIAS(name, id, method, pref) \
  24. DO_PROP(name, method, id, 0, pref, "alias")
  25. #include "nsCSSPropAliasList.h"
  26. #undef CSS_PROP_ALIAS
  27. #undef DO_PROP
  28. #undef PROP_STRINGIFY
  29. #undef PROP_STRINGIFY_INTERNAL
  30. ]