Unset previous user styles before applying another one
This commit is contained in:
parent
25652669ef
commit
a1328457cf
1 changed files with 2 additions and 3 deletions
5
surf.c
5
surf.c
|
@ -782,11 +782,10 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
|
||||||
WEBKIT_TLS_ERRORS_POLICY_IGNORE);
|
WEBKIT_TLS_ERRORS_POLICY_IGNORE);
|
||||||
break;
|
break;
|
||||||
case Style:
|
case Style:
|
||||||
|
webkit_user_content_manager_remove_all_style_sheets(
|
||||||
|
webkit_web_view_get_user_content_manager(c->view));
|
||||||
if (a->b)
|
if (a->b)
|
||||||
setstyle(c, getstyle(geturi(c)));
|
setstyle(c, getstyle(geturi(c)));
|
||||||
else
|
|
||||||
webkit_user_content_manager_remove_all_style_sheets(
|
|
||||||
webkit_web_view_get_user_content_manager(c->view));
|
|
||||||
refresh = 0;
|
refresh = 0;
|
||||||
break;
|
break;
|
||||||
case ZoomLevel:
|
case ZoomLevel:
|
||||||
|
|
Loading…
Reference in a new issue