Bug 1900223 - Remove no longer used function on android.

MANUAL PUSH: Trivial android bustage fix CLOSED TREE.
This commit is contained in:
Emilio Cobos Álvarez
2024-06-04 01:07:09 +02:00
parent 9b6e70cd76
commit 4dd10dfc9b

View File

@@ -1732,20 +1732,6 @@ void ScrollContainerFrame::HandleScrollbarStyleSwitching() {
}
}
#if defined(MOZ_WIDGET_ANDROID)
static bool IsFocused(nsIContent* aContent) {
// Some content elements, like the GetContent() of a scroll frame
// for a text input field, are inside anonymous subtrees, but the focus
// manager always reports a non-anonymous element as the focused one, so
// walk up the tree until we reach a non-anonymous element.
while (aContent && aContent->IsInNativeAnonymousSubtree()) {
aContent = aContent->GetParent();
}
return aContent ? nsContentUtils::IsFocusedContent(aContent) : false;
}
#endif
void ScrollContainerFrame::SetScrollableByAPZ(bool aScrollable) {
mScrollableByAPZ = aScrollable;
}