Backing things out until I can get Solaris bustage figured out.
This commit is contained in:
@@ -71,19 +71,6 @@ NS_NewNativeTextControlFrame(nsIFrame** aNewFrame)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsNativeTextControlFrame::nsNativeTextControlFrame()
|
||||
: mCachedState(nsnull)
|
||||
{
|
||||
}
|
||||
|
||||
nsNativeTextControlFrame::~nsNativeTextControlFrame()
|
||||
{
|
||||
if (mCachedState) {
|
||||
delete mCachedState;
|
||||
mCachedState = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsNativeTextControlFrame::EnterPressed(nsIPresContext& aPresContext)
|
||||
{
|
||||
@@ -257,12 +244,7 @@ nsNativeTextControlFrame::PostCreateWidget(nsIPresContext* aPresContext,
|
||||
nsITextAreaWidget* textArea = nsnull;
|
||||
nsITextWidget* text = nsnull;
|
||||
if (NS_OK == mWidget->QueryInterface(kITextWidgetIID,(void**)&text)) {
|
||||
if (mCachedState) {
|
||||
value = *mCachedState;
|
||||
delete mCachedState;
|
||||
mCachedState = nsnull;
|
||||
} else
|
||||
GetText(&value, PR_TRUE);
|
||||
GetText(&value, PR_TRUE);
|
||||
text->SetText(value, ignore);
|
||||
PRInt32 maxLength;
|
||||
nsresult result = GetMaxLength(&maxLength);
|
||||
@@ -271,12 +253,7 @@ nsNativeTextControlFrame::PostCreateWidget(nsIPresContext* aPresContext,
|
||||
}
|
||||
NS_RELEASE(text);
|
||||
} else if (NS_OK == mWidget->QueryInterface(kITextAreaWidgetIID,(void**)&textArea)) {
|
||||
if (mCachedState) {
|
||||
value = *mCachedState;
|
||||
delete mCachedState;
|
||||
mCachedState = nsnull;
|
||||
} else
|
||||
GetText(&value, PR_TRUE);
|
||||
GetText(&value, PR_TRUE);
|
||||
textArea->SetText(value, ignore);
|
||||
NS_RELEASE(textArea);
|
||||
}
|
||||
@@ -562,9 +539,7 @@ void nsNativeTextControlFrame::SetTextControlFrameState(const nsString& aValue)
|
||||
textArea->SetText(aValue,size);
|
||||
NS_RELEASE(textArea);
|
||||
}
|
||||
} else {
|
||||
mCachedState = new nsString(aValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsNativeTextControlFrame::SetProperty(nsIAtom* aName, const nsString& aValue)
|
||||
|
||||
Reference in New Issue
Block a user