pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2565266
)
Unset previous user styles before applying another one
author
Quentin Rameau
<quinq@fifth.space>
Thu, 18 May 2017 14:42:59 +0000
(16:42 +0200)
committer
Quentin Rameau
<quinq@fifth.space>
Mon, 22 May 2017 10:38:49 +0000
(12:38 +0200)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
694eff8
..
51c1813
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-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: