Replace panics with warnings for unimplemented property setters and copiers.

This commit is contained in:
Bobby Holley 2016-04-21 15:24:49 -07:00
parent e6fe4791f3
commit 735f1ff523

View file

@ -276,10 +276,10 @@ impl ${style_struct.trait_name} for ${style_struct.gecko_struct_name} {
*/
% for longhand in stub_longhands:
fn set_${longhand.ident}(&mut self, _: longhands::${longhand.ident}::computed_value::T) {
unimplemented!()
println!("stylo: Unimplemented property setter: ${longhand.name}");
}
fn copy_${longhand.ident}_from(&mut self, _: &Self) {
unimplemented!()
println!("stylo: Unimplemented property setter: ${longhand.name}");
}
% if longhand.need_clone:
fn clone_${longhand.ident}(&self) -> longhands::${longhand.ident}::computed_value::T {