Derive ToCss for cursor keywords

This commit is contained in:
Anthony Ramine 2017-06-07 21:08:35 +02:00
parent c8c6f3482f
commit d55d726a21
3 changed files with 14 additions and 21 deletions

View file

@ -4191,8 +4191,8 @@ clip-path
use style_traits::cursor::Cursor;
self.gecko.mCursor = match v.keyword {
Keyword::AutoCursor => structs::NS_STYLE_CURSOR_AUTO,
Keyword::SpecifiedCursor(cursor) => match cursor {
Keyword::Auto => structs::NS_STYLE_CURSOR_AUTO,
Keyword::Cursor(cursor) => match cursor {
Cursor::None => structs::NS_STYLE_CURSOR_NONE,
Cursor::Default => structs::NS_STYLE_CURSOR_DEFAULT,
Cursor::Pointer => structs::NS_STYLE_CURSOR_POINTER,