From ddf45cd67287e2c7f6e5597af259931cd40b90e9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 11 Nov 2012 18:40:55 +0000 Subject: Reformat objects that reach the READY state. --- render/html.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/render/html.c b/render/html.c index 92f1ad6a1..56c65a5d3 100644 --- a/render/html.c +++ b/render/html.c @@ -1178,6 +1178,13 @@ html_object_callback(hlcache_handle *object, break; case CONTENT_MSG_READY: + /* TODO: avoid knowledge of box internals here */ + content_reformat(object, false, + box->max_width != UNKNOWN_MAX_WIDTH ? + box->width : 0, + box->max_width != UNKNOWN_MAX_WIDTH ? + box->height : 0); + if (content_get_type(object) == CONTENT_HTML) { html_object_done(box, object, o->background); if (c->base.status == CONTENT_STATUS_READY || -- cgit v1.2.3