Skip to content

Commit

Permalink
Bug 1771796 - Remove -moz-scrollbar-thumb-proportional. r=dholbert
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emilio committed Jun 2, 2022
1 parent c63e563 commit b161a8e
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 38 deletions.
1 change: 0 additions & 1 deletion layout/style/test/chrome/bug418986-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion layout/style/test/chrome/chrome-only-media-queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions servo/components/style/gecko/media_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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),
Expand Down
7 changes: 1 addition & 6 deletions toolkit/content/minimal-xul.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ resizer[dir="topright"] {
/********** scrollbar **********/

thumb {
-moz-box-flex: 1;
display: -moz-box !important;
}

Expand Down Expand Up @@ -223,9 +224,3 @@ scrollbar[value="hidden"] {
display: none;
}
}

@media (-moz-scrollbar-thumb-proportional) {
thumb {
-moz-box-flex: 1;
}
}
4 changes: 0 additions & 4 deletions widget/LookAndFeel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 0 additions & 4 deletions widget/android/nsLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions widget/cocoa/nsLookAndFeel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,6 @@ static nscolor GetColorFromNSColorWithCustomAlpha(NSColor* aColor, float alpha)
case IntID::ScrollArrowStyle:
aResult = eScrollArrow_None;
break;
case IntID::ScrollSliderStyle:
aResult = eScrollThumbStyle_Proportional;
break;
case IntID::UseOverlayScrollbars:
case IntID::AllowOverlayScrollbarsOverlap:
aResult = NSScroller.preferredScrollerStyle == NSScrollerStyleOverlay;
Expand Down
3 changes: 0 additions & 3 deletions widget/gtk/nsLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions widget/headless/HeadlessLookAndFeelGTK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion widget/nsXPLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ static const char sIntPrefs[][45] = {
"ui.dragThresholdY",
"ui.useAccessibilityTheme",
"ui.scrollArrowStyle",
"ui.scrollSliderStyle",
"ui.scrollButtonLeftMouseButtonAction",
"ui.scrollButtonMiddleMouseButtonAction",
"ui.scrollButtonRightMouseButtonAction",
Expand Down
3 changes: 0 additions & 3 deletions widget/uikit/nsLookAndFeel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,6 @@ static nscolor GetColorFromUIColor(UIColor* aColor) {
case IntID::ScrollArrowStyle:
aResult = eScrollArrow_None;
break;
case IntID::ScrollSliderStyle:
aResult = eScrollThumbStyle_Proportional;
break;
case IntID::TreeOpenDelay:
aResult = 1000;
break;
Expand Down
3 changes: 0 additions & 3 deletions widget/windows/nsLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion xpcom/ds/StaticAtoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,6 @@
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"),
Expand Down

0 comments on commit b161a8e

Please sign in to comment.