From 8c2cfecfb5e83d023609914dd101c23777fd2906 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 6 Nov 2014 22:51:46 +0000 Subject: Allow content handlers to have debug values set through API Previously content handler debugging features were accessed by global variables. This allows the setting of debugging parameters via a content API giving per content control over debugging features. Currently only used by the html content handler to toggle global redraw debugging. --- content/content.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 67a519df6..bc47ffef0 100644 --- a/content/content.h +++ b/content/content.h @@ -90,7 +90,8 @@ typedef enum { /** Debugging dump operations */ enum content_debug { CONTENT_DEBUG_RENDER, /** Debug the contents rendering. */ - CONTENT_DEBUG_DOM /** Debug teh contents Document Object. */ + CONTENT_DEBUG_DOM, /** Debug the contents Document Object. */ + CONTENT_DEBUG_REDRAW /** Debug redraw operations. */ }; /** RFC5988 metadata link */ @@ -300,6 +301,14 @@ void content_search_clear(struct hlcache_handle *h); */ nserror content_debug_dump(struct hlcache_handle *h, FILE *f, enum content_debug op); +/** + * Control debug con a content. + * + * \param h content handle to debug. + * \param op Debug operation type. + */ +nserror content_debug(struct hlcache_handle *h, enum content_debug op); + struct content_rfc5988_link *content_find_rfc5988_link(struct hlcache_handle *c, lwc_string *rel); -- cgit v1.2.3