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

This commit is contained in:
mats.palmgren%bredband.net 2005-09-14 21:32:28 +00:00
parent 784e8e72cd
commit eaa7cda447

View File

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