mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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:
|
% 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) {
|
||||||
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) {
|
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:
|
% 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