Don't apply selection colors when printing. b=90434 r+sr+a=bzbarsky

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@188531 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net
2006-01-31 01:26:54 +00:00
parent 636ca3b5f3
commit 235d71e1b8

View File

@@ -2709,7 +2709,6 @@ nsTextFrame::PaintUnicodeText(nsPresContext* aPresContext,
aRenderingContext.SetColor(currentBKColor);
aRenderingContext.FillRect(currentX, dy, newWidth, mRect.height);
}
currentFGColor = EnsureDifferentColors(currentFGColor, currentBKColor);
}
}
else {
@@ -3416,7 +3415,7 @@ nsTextFrame::PaintTextSlowly(nsPresContext* aPresContext,
if (isRightToLeftOnBidiPlatform)
currentX -= newDimensions.width;
#endif
if (isSelection)
if (isSelection && !isPaginated)
{//DRAW RECT HERE!!!
if (!isCurrentBKColorTransparent) {
aRenderingContext.SetColor(currentBKColor);