mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Change ToNsCssValue to take the ownership of value.
This commit is contained in:
parent
f733958f2e
commit
138fa4ca08
4 changed files with 41 additions and 41 deletions
|
@ -208,9 +208,9 @@ macro_rules! font_face_descriptors_common {
|
|||
|
||||
/// Convert to Gecko types
|
||||
#[cfg(feature = "gecko")]
|
||||
pub fn set_descriptors(&self, descriptors: &mut CSSFontFaceDescriptors) {
|
||||
pub fn set_descriptors(self, descriptors: &mut CSSFontFaceDescriptors) {
|
||||
$(
|
||||
if let Some(ref value) = self.$ident {
|
||||
if let Some(value) = self.$ident {
|
||||
descriptors.$gecko_ident.set_from(value)
|
||||
}
|
||||
)*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue