Ensure the right body element is used throughout the method call.

This commit is contained in:
Olli Pettay 2019-09-05 11:29:47 +02:00 committed by Roy Tam
commit ec1e15a6f2
3 changed files with 3 additions and 3 deletions

View file

@ -659,7 +659,7 @@ ImageDocument::CreateSyntheticDocument()
NS_ENSURE_SUCCESS(rv, rv);
// Add the image element
Element* body = GetBodyElement();
RefPtr<Element> body = GetBodyElement();
if (!body) {
NS_WARNING("no body on image document!");
return NS_ERROR_FAILURE;