summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-22 16:00:20 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-22 16:00:20 +0100
commit937894d6547dd8cb3a7c4c81cba5149e38bcf8bd (patch)
treeb3df20931fb9040ef7e0ed0fa133c166226014db /content/handlers
parentb39f418bca9d0421eca127a11a0fb65bd2c37459 (diff)
downloadnetsurf-937894d6547dd8cb3a7c4c81cba5149e38bcf8bd.tar.gz
netsurf-937894d6547dd8cb3a7c4c81cba5149e38bcf8bd.tar.bz2
html: set up canvas box properly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/html/box_special.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/handlers/html/box_special.c b/content/handlers/html/box_special.c
index 23cfeec0b..2332316ce 100644
--- a/content/handlers/html/box_special.c
+++ b/content/handlers/html/box_special.c
@@ -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;
}