mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Ensure the right body element is used throughout the method call.
This commit is contained in:
parent
3f25eeefaf
commit
ec1e15a6f2
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue