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. --- windows/gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'windows/gui.c') diff --git a/windows/gui.c b/windows/gui.c index 653bf44e1..3c1d201e5 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -42,7 +42,6 @@ #include "utils/nsoption.h" #include "desktop/plotters.h" #include "desktop/textinput.h" -#include "render/html.h" #include "desktop/gui_window.h" #include "desktop/gui_clipboard.h" #include "desktop/gui_misc.h" @@ -1013,8 +1012,8 @@ nsws_window_command(HWND hwnd, break; case IDM_VIEW_TOGGLE_DEBUG_RENDERING: - html_redraw_debug = !html_redraw_debug; if (gw->bw != NULL) { + browser_window_debug(gw->bw, CONTENT_DEBUG_REDRAW); /* TODO: This should only redraw, not reformat. * (Layout doesn't change, so reformat is a waste of time) */ browser_window_reformat(gw->bw, false, gw->width, gw->height); -- cgit v1.2.3