Add set and copy functions for caret_color

This commit is contained in:
Stefano Chiodino 2017-03-14 10:30:30 +00:00
parent 0aa20be89c
commit c483f078cc

View file

@ -3096,7 +3096,7 @@ clip-path
</%self:impl_trait> </%self:impl_trait>
<%self:impl_trait style_struct_name="Pointing" <%self:impl_trait style_struct_name="Pointing"
skip_longhands="cursor"> skip_longhands="cursor caret-color">
pub fn set_cursor(&mut self, v: longhands::cursor::computed_value::T) { pub fn set_cursor(&mut self, v: longhands::cursor::computed_value::T) {
use properties::longhands::cursor::computed_value::Keyword; use properties::longhands::cursor::computed_value::Keyword;
use style_traits::cursor::Cursor; use style_traits::cursor::Cursor;
@ -3171,6 +3171,23 @@ clip-path
Gecko_CopyCursorArrayFrom(&mut self.gecko, &other.gecko); Gecko_CopyCursorArrayFrom(&mut self.gecko, &other.gecko);
} }
} }
pub fn set_caret_color(&mut self, v: longhands::caret_color::computed_value::T){
use values::Either;
match v {
Either::First(color) => {
self.gecko.mCaretColor = color;
}
Either::Second(_auto) => {
self.gecko.mCaretColor.auto();
}
}
}
pub fn copy_caret_color_from(&mut self, other: &Self){
self.gecko.mCaretColor = other.gecko.mCaretColor;
}
</%self:impl_trait> </%self:impl_trait>
<%self:impl_trait style_struct_name="Column" <%self:impl_trait style_struct_name="Column"