From 5a7358b833a41586a28b4171a3cf41740ea3cb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 29 Jul 2018 00:36:09 +0200 Subject: [PATCH] style: Restore the order of Scrollbarbutton appearance values. The patch at bug 1478391 comment 6 changed the way the math in Scrollbarbutton* worked, which pretty surely caused this. Restore the original order and math to be the same as before bug 1478391. Bug: 1479216 Reviewed-by: xidorn MozReview-Commit-ID: CK3iOqeX2NW --- components/style/values/specified/box.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index 5f34ef91884..afa88955d98 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -999,10 +999,10 @@ pub enum Appearance { /// A scrollbar button (up/down/left/right). /// Keep these in order (some code casts these values to `int` in order to /// compare them against each other). + ScrollbarbuttonUp, ScrollbarbuttonDown, ScrollbarbuttonLeft, ScrollbarbuttonRight, - ScrollbarbuttonUp, /// The scrollbar thumb. ScrollbarthumbHorizontal, ScrollbarthumbVertical,