From b264a9f1ba444add59aacdc99ef8028b961eb65b Mon Sep 17 00:00:00 2001 From: "pollmann%netscape.com" Date: Thu, 22 Feb 2001 03:16:34 +0000 Subject: [PATCH] Bug 69365: Fix mail reply-all by reverting pres-state optimizations r=ducarroz@netscape.com, sr=jst@netscape.com,vidur@netscape.com git-svn-id: svn://10.0.0.236/trunk@87628 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp b/mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp index 4554e6edb39..e987ef60b9d 100644 --- a/mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp +++ b/mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp @@ -3188,7 +3188,8 @@ nsGfxTextControlFrame2::SaveState(nsIPresContext* aPresContext, nsIPresState** a formControl->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::value, defaultStateString); } - if (! stateString.Equals(defaultStateString)) { + // XXX Removed comparison between current and default state to + // XXX temporarily fix bug 69365 (mail reply all looses addresses) // XXX Should use nsAutoString above but ConvertStringLineBreaks requires mOwnsBuffer! res = nsLinebreakConverter::ConvertStringLineBreaks(stateString, @@ -3199,7 +3200,6 @@ nsGfxTextControlFrame2::SaveState(nsIPresContext* aPresContext, nsIPresState** a res = NS_NewPresState(aState); NS_ENSURE_SUCCESS(res, res); res = (*aState)->SetStateProperty(NS_LITERAL_STRING("value"), stateString); - } return res; }