Bug 809585 - Remove nsITextControlFrame::GetTextLength. r=bz

This commit is contained in:
Mounir Lamouri
2012-11-09 10:32:01 +00:00
parent 5325cbd322
commit 1d8e47b42c
3 changed files with 0 additions and 16 deletions

View File

@@ -757,19 +757,6 @@ nsTextControlFrame::GetEditor(nsIEditor **aEditor)
return NS_OK;
}
NS_IMETHODIMP
nsTextControlFrame::GetTextLength(int32_t* aTextLength)
{
NS_ENSURE_ARG_POINTER(aTextLength);
nsAutoString textContents;
nsCOMPtr<nsITextControlElement> txtCtrl = do_QueryInterface(GetContent());
NS_ASSERTION(txtCtrl, "Content not a text control element");
txtCtrl->GetTextEditorValue(textContents, false); // this is expensive!
*aTextLength = textContents.Length();
return NS_OK;
}
nsresult
nsTextControlFrame::SetSelectionInternal(nsIDOMNode *aStartNode,
int32_t aStartOffset,