Bug 1377894 - Create the new opacity animations only when the animation id is valid, r=kats

MozReview-Commit-ID: 1njXoEnyj00

--HG--
extra : rebase_source : 43b9d5451f06de2148f6c7a7228dbcc609c038b3
This commit is contained in:
peter chang 2017-10-02 21:49:21 +08:00
parent 92f2dc2e2e
commit 799d59d88f

View File

@ -1144,7 +1144,9 @@ pub extern "C" fn wr_dp_push_stacking_context(state: &mut WrState,
filters.push(FilterOp::Opacity(PropertyBinding::Value(*opacity)));
}
} else {
filters.push(FilterOp::Opacity(PropertyBinding::Binding(PropertyBindingKey::new(animation_id))));
if animation_id > 0 {
filters.push(FilterOp::Opacity(PropertyBinding::Binding(PropertyBindingKey::new(animation_id))));
}
}
let transform = unsafe { transform.as_ref() };