style: Fix cursor prefixed aliases to do the right thing.

This was an oversight in bug 1520154. We kept the -moz- version in the specified
value but not the computed value.

That's a very peculiar way of making aliases work. This makes them work
consistently as many other aliases instead.

Also, add an assert that would've caught this much much earlier.

Differential Revision: https://phabricator.services.mozilla.com/D40063
This commit is contained in:
Emilio Cobos Álvarez 2019-07-31 18:18:21 +00:00
parent 91469aa472
commit 032347f4ff
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -199,7 +199,9 @@ pub enum CursorKind {
Move,
NoDrop,
NotAllowed,
#[parse(aliases = "-moz-grab")]
Grab,
#[parse(aliases = "-moz-grabbing")]
Grabbing,
EResize,
NResize,
@ -216,15 +218,9 @@ pub enum CursorKind {
ColResize,
RowResize,
AllScroll,
#[parse(aliases = "-moz-zoom-in")]
ZoomIn,
#[parse(aliases = "-moz-zoom-out")]
ZoomOut,
Auto,
#[cfg(feature = "gecko")]
MozGrab,
#[cfg(feature = "gecko")]
MozGrabbing,
#[cfg(feature = "gecko")]
MozZoomIn,
#[cfg(feature = "gecko")]
MozZoomOut,
}