зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1156392 - Remove an ifdef condition that we don't need any more. r=tn
This commit is contained in:
Родитель
373cfa1365
Коммит
0f7fe3417c
|
@ -1096,7 +1096,7 @@ ScrollFrameHelper::HandleScrollbarStyleSwitching()
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(MOZ_B2G) || (defined(MOZ_WIDGET_ANDROID) && !defined(MOZ_ANDROID_APZ))
|
||||
#if defined(MOZ_B2G) || defined(MOZ_WIDGET_ANDROID)
|
||||
static bool IsFocused(nsIContent* aContent)
|
||||
{
|
||||
// Some content elements, like the GetContent() of a scroll frame
|
||||
|
@ -1138,7 +1138,7 @@ ScrollFrameHelper::WantAsyncScroll() const
|
|||
bool isHScrollable = !!(directions & nsIScrollableFrame::HORIZONTAL) &&
|
||||
(styles.mHorizontal != NS_STYLE_OVERFLOW_HIDDEN);
|
||||
|
||||
#if defined(MOZ_B2G) || (defined(MOZ_WIDGET_ANDROID) && !defined(MOZ_ANDROID_APZ))
|
||||
#if defined(MOZ_B2G) || defined(MOZ_WIDGET_ANDROID)
|
||||
// Mobile platforms need focus to scroll.
|
||||
bool canScrollWithoutScrollbars = IsFocused(mOuter->GetContent());
|
||||
#else
|
||||
|
|
Загрузка…
Ссылка в новой задаче