From 3903c8a8d8b8e0e94a4777c46dbf4347c403af2e Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Thu, 10 Dec 1998 17:22:31 +0000 Subject: [PATCH] fixed bug 1806 --- layout/forms/nsTextControlFrame.cpp | 2 +- layout/html/forms/src/nsTextControlFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/forms/nsTextControlFrame.cpp b/layout/forms/nsTextControlFrame.cpp index 1516e2c0b16..a58f82ccd40 100644 --- a/layout/forms/nsTextControlFrame.cpp +++ b/layout/forms/nsTextControlFrame.cpp @@ -295,7 +295,6 @@ nsTextControlFrame::AttributeChanged(nsIPresContext* aPresContext, PRUint32 ignore; text->SetText(value, ignore); nsFormFrame::StyleChangeReflow(aPresContext, this); - } } else if (nsHTMLAtoms::size == aAttribute) { nsFormFrame::StyleChangeReflow(aPresContext, this); } else if (nsHTMLAtoms::maxlength == aAttribute) { @@ -306,6 +305,7 @@ nsTextControlFrame::AttributeChanged(nsIPresContext* aPresContext, } } NS_RELEASE(text); + } } return result; diff --git a/layout/html/forms/src/nsTextControlFrame.cpp b/layout/html/forms/src/nsTextControlFrame.cpp index 1516e2c0b16..a58f82ccd40 100644 --- a/layout/html/forms/src/nsTextControlFrame.cpp +++ b/layout/html/forms/src/nsTextControlFrame.cpp @@ -295,7 +295,6 @@ nsTextControlFrame::AttributeChanged(nsIPresContext* aPresContext, PRUint32 ignore; text->SetText(value, ignore); nsFormFrame::StyleChangeReflow(aPresContext, this); - } } else if (nsHTMLAtoms::size == aAttribute) { nsFormFrame::StyleChangeReflow(aPresContext, this); } else if (nsHTMLAtoms::maxlength == aAttribute) { @@ -306,6 +305,7 @@ nsTextControlFrame::AttributeChanged(nsIPresContext* aPresContext, } } NS_RELEASE(text); + } } return result;