Bug 1367577 - Stylo changes for updated theme constants. r=xidorn
authorL. David Baron <dbaron@dbaron.org>
Thu, 25 May 2017 22:29:52 -0400
changeset 585309 ad5da34b4bb3155f15bd9e25d176b05f25483071
parent 585308 b84dd92d6dc93b51ccc09c5bb84eb1df32a80d1a
child 585310 b56fa748e7ec0cabcb4b0f71d3f6495519e5c8dc
push id61093
push userdgottwald@mozilla.com
push dateFri, 26 May 2017 20:16:26 +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",
     "mozilla::StyleRuleInclusion",
 ]