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:
parent
5642501713
commit
261a55a1c8
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user