From 9aca901eb1db3b6f373882fe8b707e44959e2ec1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 29 Mar 2010 22:33:21 +0000 Subject: The convert stage of a content's state progression no longer reflows the content to the provided dimensions. It is now defined as converting the content into a state in which it is ready for use. The user of the content is now responsible for performing an initial reformat (sic) of the content before it can be redrawn. Purge width/height parameters from hlcache_handle_retrieve/content_convert/*_convert APIs. Fix up content handlers affected by the above change in semantics. Ensure that browser_window_callback performs an initial reformat of its content. svn path=/trunk/netsurf/; revision=10207 --- content/hlcache.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'content/hlcache.c') diff --git a/content/hlcache.c b/content/hlcache.c index 38c581f7f..d18a76b6c 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -73,7 +73,6 @@ static void hlcache_content_callback(struct content *c, /* See hlcache.h for documentation */ nserror hlcache_handle_retrieve(const char *url, uint32_t flags, const char *referer, llcache_post_data *post, - uint32_t width, uint32_t height, hlcache_handle_callback cb, void *pw, hlcache_child_context *child, hlcache_handle **result) { @@ -98,8 +97,6 @@ nserror hlcache_handle_retrieve(const char *url, uint32_t flags, ctx->child.quirks = child->quirks; } - /** \todo What happens with width/height? */ - ctx->handle->cb = cb; ctx->handle->pw = pw; @@ -275,11 +272,6 @@ nserror hlcache_find_content(hlcache_retrieval_ctx *ctx) event.type = CONTENT_MSG_LOADING; ctx->handle->cb(ctx->handle, &event, ctx->handle->pw); - /** \todo Reflow content to new width - if (content_get_available_width(ctx->handle) != width) - content_reformat(ctx->handle, width, height); - */ - if (ctx->handle->cb != NULL) { event.type = CONTENT_MSG_READY; ctx->handle->cb(ctx->handle, &event, -- cgit v1.2.3