mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 15:51:33 +00:00
small fix from pierre on use of the style system. pierre reviewed.
This commit is contained in:
parent
b73baec438
commit
cb31827195
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user