Correctly call methods to copy a color in a SympleComplexColor and getting its auto

This commit is contained in:
Stefano Chiodino 2017-03-15 19:26:25 +00:00
parent c483f078cc
commit 9cb82cad90

View file

@ -63,6 +63,7 @@ use std::cmp;
use values::computed::ToComputedValue;
use values::{Either, Auto};
use computed_values::border_style;
use gecko_bindings::structs::{nscolor, StyleComplexColor};
pub mod style_structs {
% for style_struct in data.style_structs:
@ -3177,10 +3178,10 @@ clip-path
match v {
Either::First(color) => {
self.gecko.mCaretColor = color;
self.gecko.mCaretColor = StyleComplexColor::from(color);
}
Either::Second(_auto) => {
self.gecko.mCaretColor.auto();
self.gecko.mCaretColor = StyleComplexColor::auto();
}
}
}