Bug 1367577 - Stylo changes for updated theme constants. r=xidorn
This is a little bit odd, because I didn't want to do all the work to
convert the theme constants to an enum class (although that would be
nice to do in the future). So this makes them a regular enum, but still
uses gecko_constant_prefix rather than gecko_enum_prefix because that
makes it possible to add the NS_THEME_ prefix that's still present.
MozReview-Commit-ID: LdAyCNCvWT2
--- a/layout/style/ServoBindings.toml
+++ b/layout/style/ServoBindings.toml
@@ -81,16 +81,17 @@ hide-types = [
]
bitfield-enums = [
"nsChangeHint",
"nsRestyleHint",
]
constified-enums = [
"UpdateAnimationsTasks",
"ParsingMode",
+ "ThemeWidgetType",
]
constified-enum-variants = [
{ enum = "nsCSSPropertyID", variants = ["eCSSProperty_COUNT.*"] },
]
whitelist-vars = [
"NS_AUTHOR_SPECIFIED_.*",
"NS_THEME_.*",
"NODE_.*",
@@ -239,16 +240,17 @@ whitelist-types = [
"SheetParsingMode",
"StaticRefPtr",
"StyleAnimation",
"StyleBasicShape",
"StyleBasicShapeType",
"StyleGeometryBox",
"StyleShapeSource",
"StyleTransition",
+ "ThemeWidgetType",
"mozilla::UniquePtr",
"mozilla::DefaultDelete",
"mozilla::Side",
"mozilla::binding_danger::AssertAndSuppressCleanupPolicy",
"mozilla::ParsingMode",
"mozilla::InheritTarget",
]
opaque-types = [