Skip to content

Commit

Permalink
Make -moz-outline-radius-{*} animatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisChiou committed Jun 9, 2017
1 parent e517d21 commit 5c915bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions components/style/properties/gecko.mako.rs
Expand Up @@ -574,7 +574,7 @@ fn color_to_nscolor_zero_currentcolor(color: Color) -> structs::nscolor {
% endif
</%def>

<%def name="impl_corner_style_coord(ident, gecko_ffi_name, x_index, y_index, need_clone=False)">
<%def name="impl_corner_style_coord(ident, gecko_ffi_name, x_index, y_index, need_clone)">
#[allow(non_snake_case)]
pub fn set_${ident}(&mut self, v: longhands::${ident}::computed_value::T) {
v.0.width.to_gecko_style_coord(&mut self.gecko.${gecko_ffi_name}.data_at_mut(${x_index}));
Expand Down Expand Up @@ -1494,7 +1494,8 @@ fn static_assert() {
<% impl_corner_style_coord("_moz_outline_radius_%s" % corner.ident.replace("_", ""),
"mOutlineRadius",
corner.x_index,
corner.y_index) %>
corner.y_index,
need_clone=True) %>
% endfor

pub fn outline_has_nonzero_width(&self) -> bool {
Expand Down
3 changes: 1 addition & 2 deletions components/style/properties/longhand/outline.mako.rs
Expand Up @@ -70,13 +70,12 @@ ${helpers.predefined_type("outline-width",
spec="https://drafts.csswg.org/css-ui/#propdef-outline-width")}

// The -moz-outline-radius-* properties are non-standard and not on a standards track.
// TODO: Should they animate?
% for corner in ["topleft", "topright", "bottomright", "bottomleft"]:
${helpers.predefined_type("-moz-outline-radius-" + corner, "BorderCornerRadius",
"computed::LengthOrPercentage::zero().into()",
products="gecko",
boxed=True,
animation_value_type="none",
animation_value_type="ComputedValue",
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius)")}
% endfor

Expand Down

0 comments on commit 5c915bd

Please sign in to comment.