Bug 1367577 - Stylo changes for updated theme constants. r=xidorn draft
authorL. David Baron <dbaron@dbaron.org>
Thu, 25 May 2017 22:29:52 -0400
changeset 584842 9cf0511373f7e9ac51c964cd228776ee17ee5e5e
parent 584841 a0b301a2b72322ef08b67ec1c54d2c1024d67358
child 630529 e9e9fb36273f1ed6da547ca8355ec18af1591a5c
push id60897
push userdbaron@mozilla.com
push dateFri, 26 May 2017 02:30:30 +0000
reviewersxidorn
bugs1367577
milestone55.0a1
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
layout/style/ServoBindings.toml
--- 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 = [