Skip to content

Commit

Permalink
Bug 1815430 - Remove another chunk of dead code that I forgot to comm…
Browse files Browse the repository at this point in the history
…it. a=bustage

MANUAL PUSH: Bustage fix CLOSED TREE
  • Loading branch information
emilio committed Feb 7, 2023
1 parent 07c34bc commit 0a2b2c6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions accessible/xul/XULListboxAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,22 +381,6 @@ bool XULListboxAccessible::AreItemsOperable() const {
}

LocalAccessible* XULListboxAccessible::ContainerWidget() const {
if (IsAutoCompletePopup() && mContent->GetParent()) {
// This works for XUL autocompletes. It doesn't work for HTML forms
// autocomplete because of potential crossprocess calls (when autocomplete
// lives in content process while popup lives in chrome process). If that's
// a problem then rethink Widgets interface.
nsCOMPtr<nsIDOMXULMenuListElement> menuListElm =
mContent->GetParent()->AsElement()->AsXULMenuList();
if (menuListElm) {
RefPtr<mozilla::dom::Element> inputElm;
menuListElm->GetInputField(getter_AddRefs(inputElm));
if (inputElm) {
LocalAccessible* input = mDoc->GetAccessible(inputElm);
return input ? input->ContainerWidget() : nullptr;
}
}
}
return nullptr;
}

Expand Down

0 comments on commit 0a2b2c6

Please sign in to comment.