Bug 1167189: Add an infallible version of nsContentUtils::GetNodeTextContent. r=jst
This commit is contained in:
@@ -372,9 +372,7 @@ void
|
||||
HTMLMenuItemElement::GetText(nsAString& aText)
|
||||
{
|
||||
nsAutoString text;
|
||||
if (!nsContentUtils::GetNodeTextContent(this, false, text)) {
|
||||
NS_RUNTIMEABORT("OOM");
|
||||
}
|
||||
nsContentUtils::GetNodeTextContent(this, false, text);
|
||||
|
||||
text.CompressWhitespace(true, true);
|
||||
aText = text;
|
||||
|
||||
Reference in New Issue
Block a user