mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +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::computed::ToComputedValue;
|
||||||
use values::{Either, Auto};
|
use values::{Either, Auto};
|
||||||
use computed_values::border_style;
|
use computed_values::border_style;
|
||||||
|
use gecko_bindings::structs::{nscolor, StyleComplexColor};
|
||||||
|
|
||||||
pub mod style_structs {
|
pub mod style_structs {
|
||||||
% for style_struct in data.style_structs:
|
% for style_struct in data.style_structs:
|
||||||
|
@ -3177,10 +3178,10 @@ clip-path
|
||||||
|
|
||||||
match v {
|
match v {
|
||||||
Either::First(color) => {
|
Either::First(color) => {
|
||||||
self.gecko.mCaretColor = color;
|
self.gecko.mCaretColor = StyleComplexColor::from(color);
|
||||||
}
|
}
|
||||||
Either::Second(_auto) => {
|
Either::Second(_auto) => {
|
||||||
self.gecko.mCaretColor.auto();
|
self.gecko.mCaretColor = StyleComplexColor::auto();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue