зеркало из https://github.com/mozilla/gecko-dev.git
Bug 453826 - MOZ_XUL define required for nsCaret::IsMenuPopupHidingCaret. r+sr=roc
This commit is contained in:
Родитель
6af682ac44
Коммит
862b8e5d2b
|
@ -1010,6 +1010,7 @@ PRBool nsCaret::MustDrawCaret(PRBool aIgnoreDrawnState)
|
|||
|
||||
PRBool nsCaret::IsMenuPopupHidingCaret()
|
||||
{
|
||||
#ifdef MOZ_XUL
|
||||
// Check if there are open popups.
|
||||
nsXULPopupManager *popMgr = nsXULPopupManager::GetInstance();
|
||||
nsTArray<nsIFrame*> popups = popMgr->GetOpenPopups();
|
||||
|
@ -1049,6 +1050,7 @@ PRBool nsCaret::IsMenuPopupHidingCaret()
|
|||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// There are no open menu popups, no need to hide the caret.
|
||||
return PR_FALSE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче