]> spindle.queued.net Git - midori/commitdiff
Disable shadows with WebKitGTK+ 1.2.7
authorChristian Dywan <christian@twotoasts.de>
Thu, 17 Nov 2011 00:50:32 +0000 (01:50 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 17 Nov 2011 00:50:32 +0000 (01:50 +0100)
midori/midori-websettings.c

index 822fa2fc61a36b63b82360586a74cd40a82c99fb..246dd518b84f108f556ed387a813ef934fbf301c 100644 (file)
@@ -1145,6 +1145,12 @@ midori_web_settings_init (MidoriWebSettings* web_settings)
     web_settings->user_stylesheet_uri = web_settings->user_stylesheet_uri_cached = NULL;
     web_settings->user_stylesheets = NULL;
 
+    #if WEBKIT_CHECK_VERSION (1, 2, 6) && !WEBKIT_CHECK_VERSION (1, 2, 8)
+    /* Shadows are very slow with WebKitGTK+ 1.2.7 */
+    midori_web_settings_add_style (web_settings, "box-shadow-workaround",
+        "* { -webkit-box-shadow: none !important; }");
+    #endif
+
     g_signal_connect (web_settings, "notify::default-encoding",
                       G_CALLBACK (notify_default_encoding_cb), NULL);
     g_signal_connect (web_settings, "notify::default-font-family",