From f33b3e6f52ea20dd1262bafdb44700b34e7b703e Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 10 Sep 2003 21:44:11 +0000 Subject: [project @ 2003-09-10 21:44:10 by bursa] Reformat page when browser window is resized. svn path=/import/netsurf/; revision=280 --- content/content.c | 1 + content/content.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'content') diff --git a/content/content.c b/content/content.c index 417f05561..55dfbe7df 100644 --- a/content/content.c +++ b/content/content.c @@ -257,6 +257,7 @@ void content_reformat(struct content *c, unsigned long width, unsigned long heig c->status == CONTENT_STATUS_DONE); c->available_width = width; handler_map[c->type].reformat(c, width, height); + content_broadcast(c, CONTENT_MSG_REFORMAT, 0); } diff --git a/content/content.h b/content/content.h index c8f5cb099..b1198f7db 100644 --- a/content/content.h +++ b/content/content.h @@ -66,7 +66,8 @@ typedef enum { CONTENT_MSG_DONE, /**< finished */ CONTENT_MSG_ERROR, /**< error occurred */ CONTENT_MSG_STATUS, /**< new status string */ - CONTENT_MSG_REDIRECT /**< replacement URL */ + CONTENT_MSG_REDIRECT, /**< replacement URL */ + CONTENT_MSG_REFORMAT /**< content_reformat done */ } content_msg; /** Linked list of users of a content. */ -- cgit v1.2.3