style: Put overflow: -moz-scrollbar-* behind pref.

Differential Revision: https://phabricator.services.mozilla.com/D2845
This commit is contained in:
Xidorn Quan 2018-08-07 13:57:45 +00:00 committed by Emilio Cobos Álvarez
parent c87668fcd5
commit e7945bbfcb
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -20,6 +20,11 @@
input: &mut Parser<'i, 't>,
) -> Result<Longhands, ParseError<'i>> {
% if product == "gecko":
use gecko_bindings::structs;
let moz_kw_enabled = unsafe {
structs::StaticPrefs_sVarCache_layout_css_overflow_moz_scrollbars_enabled
};
if moz_kw_enabled {
let moz_kw_found = input.try(|input| {
try_match_ident_ignore_ascii_case! { input,
"-moz-scrollbars-horizontal" => {
@ -45,6 +50,7 @@
if moz_kw_found.is_ok() {
return moz_kw_found
}
}
% endif
let overflow_x = parse_overflow(context, input)?;
let overflow_y =