html: set up canvas box properly

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-05-22 16:00:20 +01:00
parent b39f418bca
commit 937894d654
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74

View File

@ -824,6 +824,13 @@ box_canvas(dom_node *n,
}
*convert_children = false;
if (box->style &&
ns_computed_display(box->style, box_is_root(n)) == CSS_DISPLAY_NONE)
return true;
/* This is replaced content */
box->flags |= IS_REPLACED | REPLACE_DIM;
return true;
}