Fix for 93521, Active selections are sometimes grey. This fixes a few cases where the selection color is grey, the blurred selection color, when it should be blue, or whatever the active selection color is. topembed fix. We were firing blurs in some inappropriate cases with clicks within the same document.

This commit is contained in:
saari%netscape.com 2001-08-10 21:55:47 +00:00
Родитель 8d8031072b
Коммит ca0eab28c7
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1507,7 +1507,8 @@ nsEventStateManager::PostHandleEvent(nsIPresContext* aPresContext,
if (newFocus && currFrame)
ChangeFocus(newFocus, currFrame, PR_TRUE);
else if (!suppressBlur) {
SetContentState(nsnull, NS_EVENT_STATE_FOCUS);
if(gLastFocusedDocument != mDocument)
SetContentState(nsnull, NS_EVENT_STATE_FOCUS);
}
// The rest is left button-specific.