[hackers] [surf] Unset previous user styles before applying another one || Quentin Rameau
commit a1328457cff30dc678a1b8e80dc44ddb73ce293c
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu May 18 16:42:59 2017 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Mon May 22 12:38:49 2017 +0200
Unset previous user styles before applying another one
diff --git a/surf.c b/surf.c
index 694eff8..51c1813 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -782,11 +782,10 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
WEBKIT_TLS_ERRORS_POLICY_IGNORE);
break;
case Style:
+ webkit_user_content_manager_remove_all_style_sheets(
+ webkit_web_view_get_user_content_manager(c->view));
if (a->b)
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;
break;
case ZoomLevel:
Received on Sat Jun 03 2017 - 10:39:13 CEST
This archive was generated by hypermail 2.3.0
: Sat Jun 03 2017 - 10:48:27 CEST