mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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,
|
||||
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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue