Add binding for setting pair value of nsCSSValue.

This commit is contained in:
Xidorn Quan 2017-05-16 09:47:16 +10:00
parent 3ea2f3a16c
commit fdb29e15a4
2 changed files with 12 additions and 6 deletions

View file

@ -213,6 +213,13 @@ impl nsCSSValue {
*self.mValue.mFloat.as_mut() = value;
}
}
/// Set to a pair value
///
/// This is only supported on the main thread.
pub fn set_pair(&mut self, x: &nsCSSValue, y: &nsCSSValue) {
unsafe { bindings::Gecko_CSSValue_SetPair(self, x, y) }
}
}
impl Drop for nsCSSValue {