rev 16896 - in trunk/packages/kdelibs/debian: . patches

Modestas Vainius modax at alioth.debian.org
Fri Feb 12 15:55:16 UTC 2010


Author: modax
Date: 2010-02-12 15:55:15 +0000 (Fri, 12 Feb 2010)
New Revision: 16896

Added:
   trunk/packages/kdelibs/debian/patches/00_r1089160_khtml_scrolling_fix.diff
Modified:
   trunk/packages/kdelibs/debian/changelog
   trunk/packages/kdelibs/debian/patches/series
Log:
Add patch 00_r1089160_khtml_scrolling_fix.diff from upstream to fix
performance problems in KHTML.

Modified: trunk/packages/kdelibs/debian/changelog
===================================================================
--- trunk/packages/kdelibs/debian/changelog	2010-02-12 15:48:34 UTC (rev 16895)
+++ trunk/packages/kdelibs/debian/changelog	2010-02-12 15:55:15 UTC (rev 16896)
@@ -24,6 +24,8 @@
     for use in kdelibs5-{dev,dbg} and kdelibs5 metapackage despectively.
   * Add ${perl:Depends} to Depends of kdelibs5-plugins, kdelibs5-data and
     kdoctools.
+  * Add patch 00_r1089160_khtml_scrolling_fix.diff from upstream to fix
+    performance problems in KHTML.
 
   [ Kai Wasserbäch ]
   * debian/patches:

Added: trunk/packages/kdelibs/debian/patches/00_r1089160_khtml_scrolling_fix.diff
===================================================================
--- trunk/packages/kdelibs/debian/patches/00_r1089160_khtml_scrolling_fix.diff	                        (rev 0)
+++ trunk/packages/kdelibs/debian/patches/00_r1089160_khtml_scrolling_fix.diff	2010-02-12 15:55:15 UTC (rev 16896)
@@ -0,0 +1,26 @@
+Author: Germain Garand <germain at ebooksfrance.org>
+Description: critical performance fix
+ There is a huge difference of behaviour between DEBUG and RELEASE
+ builds of Qt 4.6, that breaks scrolling in KHTML.
+ .
+ Using QWidget::scroll() on a widget that doesn't have WA_OpaquePaintEvent
+ attribute set works just fine in Debug, but completely breaks down in
+ Release, causing the whole view to get repainted always.
+Origin: upstream, http://websvn.kde.org/?revision=1089160&view=revision
+Forwarded: not-needed
+
+--- a/khtml/khtmlview.cpp
++++ b/khtml/khtmlview.cpp
+@@ -604,6 +604,12 @@
+         setWidget( new QWidget(this) );
+     widget()->setAttribute( Qt::WA_NoSystemBackground );
+ 
++    // Do *not* remove this attribute frivolously.
++    // You might not notice a change of behaviour in Debug builds
++    // but removing opaque events will make QWidget::scroll fail horribly
++    // in Release builds.
++    widget()->setAttribute( Qt::WA_OpaquePaintEvent );
++
+     verticalScrollBar()->setCursor( Qt::ArrowCursor );
+     horizontalScrollBar()->setCursor( Qt::ArrowCursor );
+ 

Modified: trunk/packages/kdelibs/debian/patches/series
===================================================================
--- trunk/packages/kdelibs/debian/patches/series	2010-02-12 15:48:34 UTC (rev 16895)
+++ trunk/packages/kdelibs/debian/patches/series	2010-02-12 15:55:15 UTC (rev 16896)
@@ -1,3 +1,4 @@
+00_r1089160_khtml_scrolling_fix.diff
 00_search_for_soprano_module.diff
 08_add_debian_build_type.diff
 11_default_kde4_xdg_menu_prefix.diff




More information about the pkg-kde-commits mailing list