No option to enforce 96DPI anymore on WebKit2

This commit is contained in:
Quentin Rameau 2015-11-18 15:29:04 +01:00
parent 42829cdad0
commit b0f35be17b
1 changed files with 0 additions and 14 deletions

14
surf.c
View File

@ -907,20 +907,6 @@ newclient(void)
if (enablestyle) if (enablestyle)
setstyle(c, getstyle("about:blank")); 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_. */ /* This might conflict with _zoomto96dpi_. */
if (zoomlevel != 1.0) if (zoomlevel != 1.0)
webkit_web_view_set_zoom_level(c->view, zoomlevel); webkit_web_view_set_zoom_level(c->view, zoomlevel);