mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Derive ToCss for cursor keywords
This commit is contained in:
parent
c8c6f3482f
commit
d55d726a21
3 changed files with 14 additions and 21 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue