mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ba0d9a576a
commit
3ba589c76e
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user