From 5a2d4c6ddbb61c53cee48c721f9f21f111db219b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 18 Aug 2012 22:25:03 +0100 Subject: Group content messages that are passed on. --- render/html.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'render') diff --git a/render/html.c b/render/html.c index 1b49b84f0..134852fa2 100644 --- a/render/html.c +++ b/render/html.c @@ -1230,7 +1230,7 @@ html_object_callback(hlcache_handle *object, break; case CONTENT_MSG_LINK: - /* Don't care about favicons */ + /* Don't care about favicons that aren't on top level content */ break; case CONTENT_MSG_SCROLL: @@ -1243,23 +1243,12 @@ html_object_callback(hlcache_handle *object, break; case CONTENT_MSG_DRAGSAVE: - /* Pass it on */ - content_broadcast(&c->base, CONTENT_MSG_DRAGSAVE, event->data); - break; - case CONTENT_MSG_SAVELINK: - /* Pass it on */ - content_broadcast(&c->base, CONTENT_MSG_SAVELINK, event->data); - break; - case CONTENT_MSG_POINTER: - /* Pass it on */ - content_broadcast(&c->base, CONTENT_MSG_POINTER, event->data); - break; - case CONTENT_MSG_PASTE: - /* Pass it on */ - content_broadcast(&c->base, CONTENT_MSG_PASTE, event->data); + /* These messages are for browser window layer. + * we're not interested, so pass them on. */ + content_broadcast(&c->base, event->type, event->data); break; default: -- cgit v1.2.3