Bug 1167189: Add an infallible version of nsContentUtils::GetNodeTextContent. r=jst
This commit is contained in:
@@ -214,7 +214,7 @@ HTMLStyleElement::UnsetAttr(int32_t aNameSpaceID, nsIAtom* aAttribute,
|
||||
NS_IMETHODIMP
|
||||
HTMLStyleElement::GetInnerHTML(nsAString& aInnerHTML)
|
||||
{
|
||||
if (!nsContentUtils::GetNodeTextContent(this, false, aInnerHTML)) {
|
||||
if (!nsContentUtils::GetNodeTextContent(this, false, aInnerHTML, fallible)) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user