From eaa7cda447361297beda0a52c4933ab3618def72 Mon Sep 17 00:00:00 2001 From: "mats.palmgren%bredband.net" Date: Wed, 14 Sep 2005 21:32:28 +0000 Subject: [PATCH] Don't apply selection colors when printing. b=90434 r+sr=bzbarsky --- layout/generic/nsTextFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index c12a606d5c89..0ec6188b75e7 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -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);