mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Put overflow: -moz-scrollbar-* behind pref.
Differential Revision: https://phabricator.services.mozilla.com/D2845
This commit is contained in:
parent
c87668fcd5
commit
e7945bbfcb
1 changed files with 28 additions and 22 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue