зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2f3ee1a833
Коммит
6867a23829
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче