Bug 1900223 - Remove no longer used function on android.
MANUAL PUSH: Trivial android bustage fix CLOSED TREE.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user