Move CSS line-height property from InheritedBox to InheritedText

This commit is contained in:
Mauricio Collares 2016-04-05 00:00:32 -03:00
parent bbc5c51be8
commit d8222dd63d
4 changed files with 8 additions and 8 deletions

View file

@ -160,7 +160,7 @@ impl PropertyAnimation {
[FontWeight; get_font; font_weight],
[Height; get_box; height],
[Left; get_position; left],
[LineHeight; get_inheritedbox; line_height],
[LineHeight; get_inheritedtext; line_height],
[MarginBottom; get_margin; margin_bottom],
[MarginLeft; get_margin; margin_left],
[MarginRight; get_margin; margin_right],
@ -258,7 +258,7 @@ impl PropertyAnimation {
[FontWeight; mutate_font; font_weight],
[Height; mutate_box; height],
[Left; mutate_position; left],
[LineHeight; mutate_inheritedbox; line_height],
[LineHeight; mutate_inheritedtext; line_height],
[MarginBottom; mutate_margin; margin_bottom],
[MarginLeft; mutate_margin; margin_left],
[MarginRight; mutate_margin; margin_right],

View file

@ -674,7 +674,9 @@ pub mod longhands {
"computed::LengthOrPercentageOrNone::None",
"parse_non_negative")}
${switch_to_style_struct("InheritedBox")}
${new_style_struct("InheritedText", is_inherited=True, gecko_name="nsStyleText",
additional_methods=[Method("clone__servo_text_decorations_in_effect",
"longhands::_servo_text_decorations_in_effect::computed_value::T")])}
<%self:longhand name="line-height">
use cssparser::ToCss;
@ -1977,9 +1979,7 @@ pub mod longhands {
// CSS 2.1, Section 16 - Text
${new_style_struct("InheritedText", is_inherited=True, gecko_name="nsStyleText",
additional_methods=[Method("clone__servo_text_decorations_in_effect",
"longhands::_servo_text_decorations_in_effect::computed_value::T")])}
${switch_to_style_struct("InheritedText")}
<%self:longhand name="text-align">
pub use self::computed_value::T as SpecifiedValue;