mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
parent
91469aa472
commit
032347f4ff
1 changed files with 4 additions and 8 deletions
|
@ -199,7 +199,9 @@ pub enum CursorKind {
|
||||||
Move,
|
Move,
|
||||||
NoDrop,
|
NoDrop,
|
||||||
NotAllowed,
|
NotAllowed,
|
||||||
|
#[parse(aliases = "-moz-grab")]
|
||||||
Grab,
|
Grab,
|
||||||
|
#[parse(aliases = "-moz-grabbing")]
|
||||||
Grabbing,
|
Grabbing,
|
||||||
EResize,
|
EResize,
|
||||||
NResize,
|
NResize,
|
||||||
|
@ -216,15 +218,9 @@ pub enum CursorKind {
|
||||||
ColResize,
|
ColResize,
|
||||||
RowResize,
|
RowResize,
|
||||||
AllScroll,
|
AllScroll,
|
||||||
|
#[parse(aliases = "-moz-zoom-in")]
|
||||||
ZoomIn,
|
ZoomIn,
|
||||||
|
#[parse(aliases = "-moz-zoom-out")]
|
||||||
ZoomOut,
|
ZoomOut,
|
||||||
Auto,
|
Auto,
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
MozGrab,
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
MozGrabbing,
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
MozZoomIn,
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
MozZoomOut,
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue