mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
Correctly call methods to copy a color in a SympleComplexColor and getting its auto
This commit is contained in:
parent
c483f078cc
commit
9cb82cad90
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue