summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c5
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) ?