mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Replace panics with warnings for unimplemented property setters and copiers.
This commit is contained in:
parent
e6fe4791f3
commit
735f1ff523
1 changed files with 2 additions and 2 deletions
|
@ -276,10 +276,10 @@ impl ${style_struct.trait_name} for ${style_struct.gecko_struct_name} {
|
||||||
*/
|
*/
|
||||||
% for longhand in stub_longhands:
|
% for longhand in stub_longhands:
|
||||||
fn set_${longhand.ident}(&mut self, _: longhands::${longhand.ident}::computed_value::T) {
|
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) {
|
fn copy_${longhand.ident}_from(&mut self, _: &Self) {
|
||||||
unimplemented!()
|
println!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||||
}
|
}
|
||||||
% if longhand.need_clone:
|
% if longhand.need_clone:
|
||||||
fn clone_${longhand.ident}(&self) -> longhands::${longhand.ident}::computed_value::T {
|
fn clone_${longhand.ident}(&self) -> longhands::${longhand.ident}::computed_value::T {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue