Bug 572296. Fix logic error when adjusting the position to show the context menu at for a context menu key press. r=enndeakin

This commit is contained in:
Timothy Nikkel 2010-06-27 15:58:56 -05:00
parent ba0d9a576a
commit 3ba589c76e

View File

@ -6998,11 +6998,12 @@ PresShell::GetCurrentItemAndPositionForElement(nsIDOMElement *aCurrentEl,
// don't check menulists as the selected item will be inside a popup.
nsCOMPtr<nsIDOMXULMenuListElement> menulist = do_QueryInterface(aCurrentEl);
if (!menulist) {
checkLineHeight = PR_FALSE;
nsCOMPtr<nsIDOMXULSelectControlElement> select =
do_QueryInterface(aCurrentEl);
if (select)
if (select) {
checkLineHeight = PR_FALSE;
select->GetSelectedItem(getter_AddRefs(item));
}
}
}