small fix from pierre on use of the style system. pierre reviewed.

This commit is contained in:
mjudge%netscape.com 1999-11-03 00:11:49 +00:00
parent b73baec438
commit cb31827195
2 changed files with 10 additions and 2 deletions

View File

@ -593,7 +593,11 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn)
GetStyleData(eStyleStruct_UserInterface,
(const nsStyleStruct*&) userinterface);
if (userinterface)
result = userinterface->mUserSelect;
{
if (isOkToTurnOn && (userinterface->mUserSelect != NS_STYLE_USER_SELECT_NONE)) {
result = PR_TRUE;
}
}
}
return result;
}

View File

@ -593,7 +593,11 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn)
GetStyleData(eStyleStruct_UserInterface,
(const nsStyleStruct*&) userinterface);
if (userinterface)
result = userinterface->mUserSelect;
{
if (isOkToTurnOn && (userinterface->mUserSelect != NS_STYLE_USER_SELECT_NONE)) {
result = PR_TRUE;
}
}
}
return result;
}