mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add binding for setting pair value of nsCSSValue.
This commit is contained in:
parent
3ea2f3a16c
commit
fdb29e15a4
2 changed files with 12 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue