diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-09-27 09:57:26 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-09-27 09:57:26 +0100 |
commit | c3d6099250475d40a8b5c9c548ac8858e9d7b5ac (patch) | |
tree | 759cad6b9e9230b02f6238ffff04ce62d34a397d /render/html.c | |
parent | c9bf72a4a30da996fc84ee6df8416a3e929ad28f (diff) | |
download | netsurf-c3d6099250475d40a8b5c9c548ac8858e9d7b5ac.tar.gz netsurf-c3d6099250475d40a8b5c9c548ac8858e9d7b5ac.tar.bz2 |
Redraws during layout are prohibited, and redundant.
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c index 12c173f0d..36f6e807d 100644 --- a/render/html.c +++ b/render/html.c @@ -738,6 +738,7 @@ html_create_html_data(html_content *c, const http_parameter *params) c->base_target = NULL; c->aborted = false; c->refresh = false; + c->reflowing = false; c->title = NULL; c->bctx = NULL; c->layout = NULL; @@ -1263,6 +1264,8 @@ static void html_reformat(struct content *c, int width, int height) time_before = wallclock(); + htmlc->reflowing = true; + layout_document(htmlc, width, height); layout = htmlc->layout; @@ -1282,6 +1285,8 @@ static void html_reformat(struct content *c, int width, int height) selection_reinit(&htmlc->sel, htmlc->layout); + htmlc->reflowing = false; + time_taken = wallclock() - time_before; c->reformat_time = wallclock() + ((time_taken * 3 < nsoption_uint(min_reflow_period) ? |