Commit c30c5dc8 authored by christian@webkit.org's avatar christian@webkit.org
Browse files

2009-02-28 Zan Dobersek <zandobersek@gmail.com>

         Reviewed by Holger Freyther.

         Set the resolution for the default screen to 72.0.
         This way, setting font sizes results in expected values.

         * DumpRenderTree/gtk/DumpRenderTree.cpp:
         (setDefaultsToConsistentStateValuesForTesting):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent abbc2c53
2009-02-28 Zan Dobersek <zandobersek@gmail.com>
Reviewed by Holger Freyther.
Set the resolution for the default screen to 72.0.
This way, setting font sizes results in expected values.
* DumpRenderTree/gtk/DumpRenderTree.cpp:
(setDefaultsToConsistentStateValuesForTesting):
2009-02-28 Gustavo Noronha Silva <gns@gnome.org>
 
Reviewed by Holger Freyther.
......
......@@ -198,8 +198,9 @@ void dump()
static void setDefaultsToConsistentStateValuesForTesting()
{
WebKitWebSettings *settings = webkit_web_view_get_settings(webView);
gdk_screen_set_resolution(gdk_screen_get_default(), 72.0);
WebKitWebSettings* settings = webkit_web_view_get_settings(webView);
g_object_set(G_OBJECT(settings),
"default-font-family", "Times",
"monospace-font-family", "Courier",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment