diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-08-06 09:41:22 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-08-06 09:42:37 +0100 |
commit | 5e45c4498c0a8a24330864b3d4c68ffe891ce15e (patch) | |
tree | fe20319f2efc9dca39fe45ed6228dfd529ae3be5 /content/handlers/html/html_object.c | |
parent | c238325b12318803a8dcc706d7d678333f82e1c8 (diff) | |
download | netsurf-5e45c4498c0a8a24330864b3d4c68ffe891ce15e.tar.gz netsurf-5e45c4498c0a8a24330864b3d4c68ffe891ce15e.tar.bz2 |
HTML: Don't allow objects to redraw until we have a layout.
Diffstat (limited to 'content/handlers/html/html_object.c')
-rw-r--r-- | content/handlers/html/html_object.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/handlers/html/html_object.c b/content/handlers/html/html_object.c index acd32565b..37bf29faf 100644 --- a/content/handlers/html/html_object.c +++ b/content/handlers/html/html_object.c @@ -178,6 +178,10 @@ html_object_callback(hlcache_handle *object, box->flags & REPLACE_DIM) { union content_msg_data data; + if (c->had_initial_layout == false) { + break; + } + if (!box_visible(box)) break; @@ -212,6 +216,10 @@ html_object_callback(hlcache_handle *object, if (c->base.status != CONTENT_STATUS_LOADING) { union content_msg_data data = event->data; + if (c->had_initial_layout == false) { + break; + } + if (!box_visible(box)) break; |