mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1460116 - Remove ShouldHideScrollbars. r=jimm
MozReview-Commit-ID: 7v6Eylefk4t --HG-- extra : rebase_source : f37e94e205e7e589c3a47f282c57b725d65914d9
This commit is contained in:
parent
295e2f4aca
commit
4ddb42237d
@ -216,12 +216,6 @@ public:
|
||||
* Should we insert a dropmarker inside of combobox button?
|
||||
*/
|
||||
virtual bool ThemeNeedsComboboxDropmarker()=0;
|
||||
|
||||
/**
|
||||
* Should we hide scrollbars?
|
||||
*/
|
||||
virtual bool ShouldHideScrollbars()
|
||||
{ return false; }
|
||||
};
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(nsITheme, NS_ITHEME_IID)
|
||||
|
@ -3092,12 +3092,6 @@ ScrollFrameHelper::AppendScrollPartsTo(nsDisplayListBuilder* aBuilder,
|
||||
bool aCreateLayer,
|
||||
bool aPositioned)
|
||||
{
|
||||
nsITheme* theme = mOuter->PresContext()->GetTheme();
|
||||
if (theme &&
|
||||
theme->ShouldHideScrollbars()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool overlayScrollbars =
|
||||
LookAndFeel::GetInt(LookAndFeel::eIntID_UseOverlayScrollbars) != 0;
|
||||
|
||||
|
@ -1769,13 +1769,6 @@ WinUtils::SetupKeyModifiersSequence(nsTArray<KeyPair>* aArray,
|
||||
}
|
||||
}
|
||||
|
||||
/* static */
|
||||
bool
|
||||
WinUtils::ShouldHideScrollbars()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// This is in use here and in dom/events/TouchEvent.cpp
|
||||
/* static */
|
||||
uint32_t
|
||||
|
@ -489,8 +489,6 @@ public:
|
||||
|
||||
static void Initialize();
|
||||
|
||||
static bool ShouldHideScrollbars();
|
||||
|
||||
/**
|
||||
* This function normalizes the input path, converts short filenames to long
|
||||
* filenames, and substitutes environment variables for system paths.
|
||||
|
@ -2622,12 +2622,6 @@ nsNativeThemeWin::ThemeGeometryTypeForWidget(nsIFrame* aFrame,
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
nsNativeThemeWin::ShouldHideScrollbars()
|
||||
{
|
||||
return WinUtils::ShouldHideScrollbars();
|
||||
}
|
||||
|
||||
nsITheme::Transparency
|
||||
nsNativeThemeWin::GetWidgetTransparency(nsIFrame* aFrame, uint8_t aWidgetType)
|
||||
{
|
||||
|
@ -83,8 +83,6 @@ public:
|
||||
virtual ThemeGeometryType ThemeGeometryTypeForWidget(nsIFrame* aFrame,
|
||||
uint8_t aWidgetType) override;
|
||||
|
||||
virtual bool ShouldHideScrollbars() override;
|
||||
|
||||
nsNativeThemeWin();
|
||||
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user