Change ToNsCssValue to take the ownership of value.

This commit is contained in:
Xidorn Quan 2017-05-16 09:47:22 +10:00
parent f733958f2e
commit 138fa4ca08
4 changed files with 41 additions and 41 deletions

View file

@ -172,9 +172,9 @@ macro_rules! counter_style_descriptors {
/// Convert to Gecko types
#[cfg(feature = "gecko")]
pub fn set_descriptors(&self, descriptors: &mut CounterStyleDescriptors) {
pub fn set_descriptors(self, descriptors: &mut CounterStyleDescriptors) {
$(
if let Some(ref value) = self.$ident {
if let Some(value) = self.$ident {
descriptors[nsCSSCounterDesc::$gecko_ident as usize].set_from(value)
}
)*