From 4922b186babc75317e16f5dc1d2cb782aa651b34 Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Tue, 19 Feb 2002 07:30:58 +0000 Subject: [PATCH] Initialize variables - regression/left-over from bug 96870 that caused me to spent cycles chasing a non-existent bug elsewhere, carrying forward r=rods, sr=attinasi --- layout/generic/nsTextFrame.cpp | 6 +++--- layout/html/base/src/nsTextFrame.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index 78b4e054268..959513d786a 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -2207,7 +2207,7 @@ nsTextFrame::PaintUnicodeText(nsIPresContext* aPresContext, { nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue; @@ -2891,7 +2891,7 @@ nsTextFrame::PaintTextSlowly(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; PRBool displaySelection; - PRBool isPaginated,canDarkenColor; + PRBool isPaginated,canDarkenColor=PR_FALSE; PRBool isSelected; PRInt16 selectionValue; nsCOMPtr lb; @@ -3067,7 +3067,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue; diff --git a/layout/html/base/src/nsTextFrame.cpp b/layout/html/base/src/nsTextFrame.cpp index 78b4e054268..959513d786a 100644 --- a/layout/html/base/src/nsTextFrame.cpp +++ b/layout/html/base/src/nsTextFrame.cpp @@ -2207,7 +2207,7 @@ nsTextFrame::PaintUnicodeText(nsIPresContext* aPresContext, { nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue; @@ -2891,7 +2891,7 @@ nsTextFrame::PaintTextSlowly(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; PRBool displaySelection; - PRBool isPaginated,canDarkenColor; + PRBool isPaginated,canDarkenColor=PR_FALSE; PRBool isSelected; PRInt16 selectionValue; nsCOMPtr lb; @@ -3067,7 +3067,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue;