Bug 289652 [regression] -moz-selection fails to work r+sr=bzbarsky, a=asa
git-svn-id: svn://10.0.0.236/trunk@173684 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1306,12 +1306,7 @@ DrawSelectionIterator::GetSelectionColors(nscolor *aForeColor,
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
PRBool dontChangeTextColor = mOldStyle.mSelectionTextColor == NS_DONT_CHANGE_COLOR;
|
||||
|
||||
// If the selection text color is NS_DONT_CHANGE_COLOR,
|
||||
// we don't accept the ::selection pseudo element.
|
||||
if (!dontChangeTextColor &&
|
||||
mSelectionPseudoStyle &&
|
||||
if (mSelectionPseudoStyle &&
|
||||
mSelectionStatus == nsISelectionController::SELECTION_ON) {
|
||||
*aForeColor = mSelectionPseudoFGcolor;
|
||||
*aBackColor = mSelectionPseudoBGcolor;
|
||||
@@ -1319,6 +1314,9 @@ DrawSelectionIterator::GetSelectionColors(nscolor *aForeColor,
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool dontChangeTextColor =
|
||||
mOldStyle.mSelectionTextColor == NS_DONT_CHANGE_COLOR;
|
||||
|
||||
if (dontChangeTextColor)
|
||||
*aForeColor = mOldStyle.mColor->mColor;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user