From d8e0d97fd8394bc00eac5f1cc86c1dd4614d867c Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Thu, 7 Apr 2016 20:59:38 -0700 Subject: [PATCH] Add more annotations to the properties. --- components/style/properties.mako.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/style/properties.mako.rs b/components/style/properties.mako.rs index ecbfe5af015..332f144365f 100644 --- a/components/style/properties.mako.rs +++ b/components/style/properties.mako.rs @@ -688,7 +688,7 @@ pub mod longhands { } - ${new_style_struct("InheritedBox", is_inherited=True, + ${new_style_struct("InheritedBox", is_inherited=True, gecko_name="nsStyleVisibility", additional_methods=[Method("clone_direction", "longhands::direction::computed_value::T"), Method("clone_writing_mode", @@ -976,7 +976,7 @@ pub mod longhands { // CSS 2.1, Section 12 - Generated content, automatic numbering, and lists - ${new_style_struct("Counters", is_inherited=False)} + ${new_style_struct("Counters", is_inherited=False, gecko_name="nsStyleContent")} <%self:longhand name="content"> use cssparser::Token; @@ -2242,7 +2242,7 @@ pub mod longhands { ${single_keyword("word-break", "normal break-all")} // TODO(pcwalton): Support `text-justify: distribute`. - ${single_keyword("text-justify", "auto none inter-word")} + ${single_keyword("text-justify", "auto none inter-word", products="servo")} ${new_style_struct("Text", is_inherited=False, gecko_name="nsStyleTextReset", additional_methods=[Method("has_underline", "bool"), @@ -2482,7 +2482,7 @@ pub mod longhands { ${single_keyword("table-layout", "auto fixed")} - ${new_style_struct("InheritedTable", is_inherited=True)} + ${new_style_struct("InheritedTable", is_inherited=True, gecko_name="nsStyleTableBorder")} ${single_keyword("border-collapse", "separate collapse")} @@ -2609,7 +2609,7 @@ pub mod longhands { ${single_keyword("box-sizing", "content-box border-box")} - ${new_style_struct("Pointing", is_inherited=True)} + ${new_style_struct("Pointing", is_inherited=True, gecko_name="nsStyleUserInterface")} <%self:longhand name="cursor"> pub use self::computed_value::T as SpecifiedValue; @@ -2853,7 +2853,7 @@ pub mod longhands { // Box-shadow, etc. - ${new_style_struct("Effects", is_inherited=False)} + ${new_style_struct("Effects", is_inherited=False, gecko_name="nsStyleEffects")} <%self:longhand name="opacity"> use cssparser::ToCss;