X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=70d4eb822a7500460263a85b13a138a4e0a3188e;hb=f86977a6fab8ed51bd1208b843b9f53db0cdd058;hp=30c3f8544594d6d28c3222d69a5137484656c11f;hpb=42829cdad04c6191c6571d571cde051b16834e43;p=surf.git diff --git a/surf.c b/surf.c index 30c3f85..70d4eb8 100644 --- a/surf.c +++ b/surf.c @@ -907,20 +907,6 @@ newclient(void) if (enablestyle) setstyle(c, getstyle("about:blank")); - /* - * While stupid, CSS specifies that a pixel represents 1/96 of an inch. - * This ensures websites are not unusably small with a high DPI screen. - * It is equivalent to firefox's "layout.css.devPixelsPerPx" setting. - */ - if (zoomto96dpi) { - screen = gdk_window_get_screen(gwin); - dpi = gdk_screen_get_resolution(screen); - if (dpi != -1) { - g_object_set(G_OBJECT(settings), - "enforce-96-dpi", true, NULL); - webkit_web_view_set_zoom_level(c->view, dpi/96); - } - } /* This might conflict with _zoomto96dpi_. */ if (zoomlevel != 1.0) webkit_web_view_set_zoom_level(c->view, zoomlevel); @@ -1221,6 +1207,11 @@ setup(void) webkit_web_context_get_cookie_manager(context), cookiepolicy_get()); + /* rendering process model, can be a shared unique one or one for each + * view */ + webkit_web_context_set_process_model(context, + WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES); + /* disk cache */ webkit_web_context_set_cache_model(context, enablecache ? WEBKIT_CACHE_MODEL_WEB_BROWSER :