diff options
author | Quentin Rameau <quinq@fifth.space> | 2017-05-18 16:42:59 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2017-05-22 12:38:49 +0200 |
commit | a1328457cff30dc678a1b8e80dc44ddb73ce293c (patch) | |
tree | 434f6d2585d5fa2df6eadef512b208548486f116 | |
parent | 25652669ef1fc4c0024542c5d7a90a58ba99bcbd (diff) | |
download | surf-a1328457cff30dc678a1b8e80dc44ddb73ce293c.tar.gz surf-a1328457cff30dc678a1b8e80dc44ddb73ce293c.tar.bz2 surf-a1328457cff30dc678a1b8e80dc44ddb73ce293c.zip |
Unset previous user styles before applying another one
-rw-r--r-- | surf.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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: |