mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Don't complain about unimplemented setters in release builds.
This commit is contained in:
parent
55b0bb027c
commit
18f7fdd26a
1 changed files with 6 additions and 2 deletions
|
@ -420,10 +420,14 @@ 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) {
|
||||
println!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
if cfg!(debug_assertions) {
|
||||
println!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
}
|
||||
}
|
||||
fn copy_${longhand.ident}_from(&mut self, _: &Self) {
|
||||
println!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
if cfg!(debug_assertions) {
|
||||
println!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
}
|
||||
}
|
||||
% if longhand.need_clone:
|
||||
fn clone_${longhand.ident}(&self) -> longhands::${longhand.ident}::computed_value::T {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue