[Xfce4-commits] <midori:master> Disable shadows with WebKitGTK+ 1.2.7

Christian Dywan noreply at xfce.org
Thu Nov 17 01:52:01 CET 2011


Updating branch refs/heads/master
         to a260fdce12f22bf9ff8f3b8bb2564371e0510d59 (commit)
       from 9fca252512bf8a26f6b04de2fb1ceaf886ff0989 (commit)

commit a260fdce12f22bf9ff8f3b8bb2564371e0510d59
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Nov 17 01:50:32 2011 +0100

    Disable shadows with WebKitGTK+ 1.2.7

 midori/midori-websettings.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index 822fa2f..246dd51 100644
--- a/midori/midori-websettings.c
+++ b/midori/midori-websettings.c
@@ -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",


More information about the Xfce4-commits mailing list