From 9cb82cad90579ee89da73fdd2119abc2ca8aeaab Mon Sep 17 00:00:00 2001 From: Stefano Chiodino Date: Wed, 15 Mar 2017 19:26:25 +0000 Subject: [PATCH] Correctly call methods to copy a color in a SympleComplexColor and getting its auto --- components/style/properties/gecko.mako.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 4d7e49f39e9..ac586fbd807 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -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(); } } }