Bug 27951: Re-enable set text "" and Reset for inputs/textareas. This fix coutesy of jfrancis r=self, waqar

git-svn-id: svn://10.0.0.236/trunk@63487 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com 2000-03-20 23:15:06 +00:00
parent 5642501713
commit 261a55a1c8

View File

@ -1368,6 +1368,8 @@ void nsGfxTextControlFrame::SetTextControlFrameState(const nsString& aValue)
flags &= ~(nsIHTMLEditor::eEditorDisabledMask);
flags &= ~(nsIHTMLEditor::eEditorReadonlyMask);
mEditor->SetFlags(flags);
mEditor->SelectAll();
mEditor->DeleteSelection(nsIEditor::eNone);
htmlEditor->InsertText(aValue);
mEditor->SetFlags(savedFlags);
}