forked from mirrors/gecko-dev
Bug 1771796 - Remove -moz-scrollbar-thumb-proportional. r=dholbert
It unconditionally matches on all platforms, so it's not returning any useful information. Depends on D147689 Differential Revision: https://phabricator.services.mozilla.com/D147690
This commit is contained in:
parent
232b67a985
commit
9349aeea85
13 changed files with 2 additions and 38 deletions
|
|
@ -56,7 +56,6 @@ var suppressed_toggles = [
|
|||
"-moz-scrollbar-end-forward",
|
||||
"-moz-scrollbar-start-backward",
|
||||
"-moz-scrollbar-start-forward",
|
||||
"-moz-scrollbar-thumb-proportional",
|
||||
"-moz-windows-compositor",
|
||||
"-moz-windows-default-theme",
|
||||
"-moz-windows-glass",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ const CHROME_ONLY_TOGGLES = [
|
|||
"-moz-scrollbar-start-forward",
|
||||
"-moz-scrollbar-end-backward",
|
||||
"-moz-scrollbar-end-forward",
|
||||
"-moz-scrollbar-thumb-proportional",
|
||||
"-moz-overlay-scrollbars",
|
||||
"-moz-windows-classic",
|
||||
"-moz-windows-compositor",
|
||||
|
|
|
|||
|
|
@ -586,7 +586,7 @@ macro_rules! bool_pref_feature {
|
|||
/// to support new types in these entries and (2) ensuring that either
|
||||
/// nsPresContext::MediaFeatureValuesChanged is called when the value that
|
||||
/// would be returned by the evaluator function could change.
|
||||
pub static MEDIA_FEATURES: [QueryFeatureDescription; 60] = [
|
||||
pub static MEDIA_FEATURES: [QueryFeatureDescription; 59] = [
|
||||
feature!(
|
||||
atom!("width"),
|
||||
AllowsRanges::Yes,
|
||||
|
|
@ -855,10 +855,6 @@ pub static MEDIA_FEATURES: [QueryFeatureDescription; 60] = [
|
|||
ScrollArrowStyle,
|
||||
get_scrollbar_end_forward
|
||||
),
|
||||
lnf_int_feature!(
|
||||
atom!("-moz-scrollbar-thumb-proportional"),
|
||||
ScrollSliderStyle
|
||||
),
|
||||
lnf_int_feature!(atom!("-moz-menubar-drag"), MenuBarDrag),
|
||||
lnf_int_feature!(atom!("-moz-windows-default-theme"), WindowsDefaultTheme),
|
||||
lnf_int_feature!(atom!("-moz-mac-graphite-theme"), MacGraphiteTheme),
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ resizer[dir="topright"] {
|
|||
/********** scrollbar **********/
|
||||
|
||||
thumb {
|
||||
-moz-box-flex: 1;
|
||||
display: -moz-box !important;
|
||||
}
|
||||
|
||||
|
|
@ -223,9 +224,3 @@ scrollbar[value="hidden"] {
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-scrollbar-thumb-proportional) {
|
||||
thumb {
|
||||
-moz-box-flex: 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,8 +75,6 @@ class LookAndFeel {
|
|||
|
||||
// position of scroll arrows in a scrollbar
|
||||
ScrollArrowStyle,
|
||||
// is scroll thumb proportional or fixed?
|
||||
ScrollSliderStyle,
|
||||
|
||||
// each button can take one of four values:
|
||||
ScrollButtonLeftMouseButtonAction,
|
||||
|
|
@ -368,8 +366,6 @@ class LookAndFeel {
|
|||
eScrollArrow_StartBackward | eScrollArrow_StartForward
|
||||
};
|
||||
|
||||
enum { eScrollThumbStyle_Normal, eScrollThumbStyle_Proportional };
|
||||
|
||||
// When modifying this list, also modify nsXPLookAndFeel::sFloatPrefs
|
||||
// in widget/nsXPLookAndFeel.cpp.
|
||||
enum class FloatID {
|
||||
|
|
|
|||
|
|
@ -334,10 +334,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
|
|||
aResult = eScrollArrowStyle_Single;
|
||||
break;
|
||||
|
||||
case IntID::ScrollSliderStyle:
|
||||
aResult = eScrollThumbStyle_Proportional;
|
||||
break;
|
||||
|
||||
case IntID::UseOverlayScrollbars:
|
||||
aResult = 1;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -400,9 +400,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
|
|||
case IntID::ScrollArrowStyle:
|
||||
aResult = eScrollArrow_None;
|
||||
break;
|
||||
case IntID::ScrollSliderStyle:
|
||||
aResult = eScrollThumbStyle_Proportional;
|
||||
break;
|
||||
case IntID::UseOverlayScrollbars:
|
||||
case IntID::AllowOverlayScrollbarsOverlap:
|
||||
aResult = NSScroller.preferredScrollerStyle == NSScrollerStyleOverlay;
|
||||
|
|
|
|||
|
|
@ -862,9 +862,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
|
|||
aResult = ConvertGTKStepperStyleToMozillaScrollArrowStyle(scrollbar);
|
||||
break;
|
||||
}
|
||||
case IntID::ScrollSliderStyle:
|
||||
aResult = eScrollThumbStyle_Proportional;
|
||||
break;
|
||||
case IntID::TreeOpenDelay:
|
||||
aResult = 1000;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -63,9 +63,6 @@ nsresult HeadlessLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
|
|||
case IntID::ScrollArrowStyle:
|
||||
aResult = eScrollArrow_None;
|
||||
break;
|
||||
case IntID::ScrollSliderStyle:
|
||||
aResult = eScrollThumbStyle_Proportional;
|
||||
break;
|
||||
case IntID::ScrollButtonLeftMouseButtonAction:
|
||||
aResult = 0;
|
||||
return NS_OK;
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ static const char sIntPrefs[][45] = {
|
|||
"ui.dragThresholdY",
|
||||
"ui.useAccessibilityTheme",
|
||||
"ui.scrollArrowStyle",
|
||||
"ui.scrollSliderStyle",
|
||||
"ui.scrollButtonLeftMouseButtonAction",
|
||||
"ui.scrollButtonMiddleMouseButtonAction",
|
||||
"ui.scrollButtonRightMouseButtonAction",
|
||||
|
|
|
|||
|
|
@ -274,9 +274,6 @@ nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
|
|||
case IntID::ScrollArrowStyle:
|
||||
aResult = eScrollArrow_None;
|
||||
break;
|
||||
case IntID::ScrollSliderStyle:
|
||||
aResult = eScrollThumbStyle_Proportional;
|
||||
break;
|
||||
case IntID::TreeOpenDelay:
|
||||
aResult = 1000;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -384,9 +384,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
|
|||
case IntID::ScrollArrowStyle:
|
||||
aResult = eScrollArrowStyle_Single;
|
||||
break;
|
||||
case IntID::ScrollSliderStyle:
|
||||
aResult = eScrollThumbStyle_Proportional;
|
||||
break;
|
||||
case IntID::TreeOpenDelay:
|
||||
aResult = 1000;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -2224,7 +2224,6 @@ STATIC_ATOMS = [
|
|||
Atom("_moz_scrollbar_start_forward", "-moz-scrollbar-start-forward"),
|
||||
Atom("_moz_scrollbar_end_backward", "-moz-scrollbar-end-backward"),
|
||||
Atom("_moz_scrollbar_end_forward", "-moz-scrollbar-end-forward"),
|
||||
Atom("_moz_scrollbar_thumb_proportional", "-moz-scrollbar-thumb-proportional"),
|
||||
Atom("_moz_overlay_scrollbars", "-moz-overlay-scrollbars"),
|
||||
Atom("_moz_windows_accent_color_in_titlebar", "-moz-windows-accent-color-in-titlebar"),
|
||||
Atom("_moz_windows_default_theme", "-moz-windows-default-theme"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue