Bug 1167189: Add an infallible version of nsContentUtils::GetNodeTextContent. r=jst
This commit is contained in:
@@ -344,7 +344,7 @@ IMPL_URI_PART(Hash)
|
||||
NS_IMETHODIMP
|
||||
HTMLAnchorElement::GetText(nsAString& aText)
|
||||
{
|
||||
if(!nsContentUtils::GetNodeTextContent(this, true, aText)) {
|
||||
if(!nsContentUtils::GetNodeTextContent(this, true, aText, fallible)) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user