mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
style: Fix misdirected animation properties.
left redirected to top, and padding redirected to margin.
This commit is contained in:
parent
effb17b336
commit
ad7bfa2289
1 changed files with 18 additions and 18 deletions
|
@ -132,7 +132,7 @@ impl PropertyAnimation {
|
||||||
[FontSize; get_font; font_size],
|
[FontSize; get_font; font_size],
|
||||||
[FontWeight; get_font; font_weight],
|
[FontWeight; get_font; font_weight],
|
||||||
[Height; get_box; height],
|
[Height; get_box; height],
|
||||||
[Left; get_positionoffsets; bottom],
|
[Left; get_positionoffsets; left],
|
||||||
[LineHeight; get_inheritedbox; line_height],
|
[LineHeight; get_inheritedbox; line_height],
|
||||||
[MarginBottom; get_margin; margin_bottom],
|
[MarginBottom; get_margin; margin_bottom],
|
||||||
[MarginLeft; get_margin; margin_left],
|
[MarginLeft; get_margin; margin_left],
|
||||||
|
@ -145,10 +145,10 @@ impl PropertyAnimation {
|
||||||
[Opacity; get_effects; opacity],
|
[Opacity; get_effects; opacity],
|
||||||
[OutlineColor; get_outline; outline_color],
|
[OutlineColor; get_outline; outline_color],
|
||||||
[OutlineWidth; get_outline; outline_width],
|
[OutlineWidth; get_outline; outline_width],
|
||||||
[PaddingBottom; get_margin; margin_bottom],
|
[PaddingBottom; get_padding; padding_bottom],
|
||||||
[PaddingLeft; get_margin; margin_left],
|
[PaddingLeft; get_padding; padding_left],
|
||||||
[PaddingRight; get_margin; margin_right],
|
[PaddingRight; get_padding; padding_right],
|
||||||
[PaddingTop; get_margin; margin_top],
|
[PaddingTop; get_padding; padding_top],
|
||||||
[Right; get_positionoffsets; right],
|
[Right; get_positionoffsets; right],
|
||||||
[TextIndent; get_inheritedtext; text_indent],
|
[TextIndent; get_inheritedtext; text_indent],
|
||||||
[Top; get_positionoffsets; top],
|
[Top; get_positionoffsets; top],
|
||||||
|
@ -229,7 +229,7 @@ impl PropertyAnimation {
|
||||||
[FontSize; mutate_font; font_size],
|
[FontSize; mutate_font; font_size],
|
||||||
[FontWeight; mutate_font; font_weight],
|
[FontWeight; mutate_font; font_weight],
|
||||||
[Height; mutate_box; height],
|
[Height; mutate_box; height],
|
||||||
[Left; mutate_positionoffsets; bottom],
|
[Left; mutate_positionoffsets; left],
|
||||||
[LineHeight; mutate_inheritedbox; line_height],
|
[LineHeight; mutate_inheritedbox; line_height],
|
||||||
[MarginBottom; mutate_margin; margin_bottom],
|
[MarginBottom; mutate_margin; margin_bottom],
|
||||||
[MarginLeft; mutate_margin; margin_left],
|
[MarginLeft; mutate_margin; margin_left],
|
||||||
|
@ -242,10 +242,10 @@ impl PropertyAnimation {
|
||||||
[Opacity; mutate_effects; opacity],
|
[Opacity; mutate_effects; opacity],
|
||||||
[OutlineColor; mutate_outline; outline_color],
|
[OutlineColor; mutate_outline; outline_color],
|
||||||
[OutlineWidth; mutate_outline; outline_width],
|
[OutlineWidth; mutate_outline; outline_width],
|
||||||
[PaddingBottom; mutate_margin; margin_bottom],
|
[PaddingBottom; mutate_padding; padding_bottom],
|
||||||
[PaddingLeft; mutate_margin; margin_left],
|
[PaddingLeft; mutate_padding; padding_left],
|
||||||
[PaddingRight; mutate_margin; margin_right],
|
[PaddingRight; mutate_padding; padding_right],
|
||||||
[PaddingTop; mutate_margin; margin_top],
|
[PaddingTop; mutate_padding; padding_top],
|
||||||
[Right; mutate_positionoffsets; right],
|
[Right; mutate_positionoffsets; right],
|
||||||
[TextIndent; mutate_inheritedtext; text_indent],
|
[TextIndent; mutate_inheritedtext; text_indent],
|
||||||
[TextShadow; mutate_effects; text_shadow],
|
[TextShadow; mutate_effects; text_shadow],
|
||||||
|
@ -296,10 +296,10 @@ enum AnimatedProperty {
|
||||||
Opacity(CSSFloat, CSSFloat),
|
Opacity(CSSFloat, CSSFloat),
|
||||||
OutlineColor(Color, Color),
|
OutlineColor(Color, Color),
|
||||||
OutlineWidth(Length, Length),
|
OutlineWidth(Length, Length),
|
||||||
PaddingBottom(LengthOrPercentageOrAuto, LengthOrPercentageOrAuto),
|
PaddingBottom(LengthOrPercentage, LengthOrPercentage),
|
||||||
PaddingLeft(LengthOrPercentageOrAuto, LengthOrPercentageOrAuto),
|
PaddingLeft(LengthOrPercentage, LengthOrPercentage),
|
||||||
PaddingRight(LengthOrPercentageOrAuto, LengthOrPercentageOrAuto),
|
PaddingRight(LengthOrPercentage, LengthOrPercentage),
|
||||||
PaddingTop(LengthOrPercentageOrAuto, LengthOrPercentageOrAuto),
|
PaddingTop(LengthOrPercentage, LengthOrPercentage),
|
||||||
Right(LengthOrPercentageOrAuto, LengthOrPercentageOrAuto),
|
Right(LengthOrPercentageOrAuto, LengthOrPercentageOrAuto),
|
||||||
TextIndent(LengthOrPercentage, LengthOrPercentage),
|
TextIndent(LengthOrPercentage, LengthOrPercentage),
|
||||||
TextShadow(TextShadowList, TextShadowList),
|
TextShadow(TextShadowList, TextShadowList),
|
||||||
|
@ -324,10 +324,6 @@ impl AnimatedProperty {
|
||||||
AnimatedProperty::MarginRight(ref a, ref b) |
|
AnimatedProperty::MarginRight(ref a, ref b) |
|
||||||
AnimatedProperty::MarginBottom(ref a, ref b) |
|
AnimatedProperty::MarginBottom(ref a, ref b) |
|
||||||
AnimatedProperty::MarginLeft(ref a, ref b) |
|
AnimatedProperty::MarginLeft(ref a, ref b) |
|
||||||
AnimatedProperty::PaddingTop(ref a, ref b) |
|
|
||||||
AnimatedProperty::PaddingRight(ref a, ref b) |
|
|
||||||
AnimatedProperty::PaddingBottom(ref a, ref b) |
|
|
||||||
AnimatedProperty::PaddingLeft(ref a, ref b) |
|
|
||||||
AnimatedProperty::Width(ref a, ref b) |
|
AnimatedProperty::Width(ref a, ref b) |
|
||||||
AnimatedProperty::Height(ref a, ref b) => a == b,
|
AnimatedProperty::Height(ref a, ref b) => a == b,
|
||||||
AnimatedProperty::MaxWidth(ref a, ref b) |
|
AnimatedProperty::MaxWidth(ref a, ref b) |
|
||||||
|
@ -346,6 +342,10 @@ impl AnimatedProperty {
|
||||||
AnimatedProperty::BorderLeftColor(ref a, ref b) |
|
AnimatedProperty::BorderLeftColor(ref a, ref b) |
|
||||||
AnimatedProperty::OutlineColor(ref a, ref b) |
|
AnimatedProperty::OutlineColor(ref a, ref b) |
|
||||||
AnimatedProperty::BackgroundColor(ref a, ref b) => a == b,
|
AnimatedProperty::BackgroundColor(ref a, ref b) => a == b,
|
||||||
|
AnimatedProperty::PaddingTop(ref a, ref b) |
|
||||||
|
AnimatedProperty::PaddingRight(ref a, ref b) |
|
||||||
|
AnimatedProperty::PaddingBottom(ref a, ref b) |
|
||||||
|
AnimatedProperty::PaddingLeft(ref a, ref b) => a == b,
|
||||||
AnimatedProperty::LineHeight(ref a, ref b) => a == b,
|
AnimatedProperty::LineHeight(ref a, ref b) => a == b,
|
||||||
AnimatedProperty::LetterSpacing(ref a, ref b) => a == b,
|
AnimatedProperty::LetterSpacing(ref a, ref b) => a == b,
|
||||||
AnimatedProperty::BackgroundPosition(ref a, ref b) => a == b,
|
AnimatedProperty::BackgroundPosition(ref a, ref b) => a == b,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue