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
parent 8d8031072b
commit ca0eab28c7

View File

@ -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.