updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xulrunner-qt / firefox-qt.patch
blobff4c2636748727a7a0d48da46f9bbfab8a2cbde0
1 diff -ur mozilla-1.9.2.orig/widget/src/qt/nsWindow.cpp mozilla-1.9.2/widget/src/qt/nsWindow.cpp
2 --- mozilla-1.9.2.orig/widget/src/qt/nsWindow.cpp
3 +++ mozilla-1.9.2/widget/src/qt/nsWindow.cpp
4 @@ -668,7 +668,7 @@
6 void
7 nsWindow::Scroll(const nsIntPoint& aDelta,
8 - const nsIntRect& aSource,
9 + const nsTArray<nsIntRect>& aDestRects,
10 const nsTArray<nsIWidget::Configuration>& aConfigurations)
12 if (!mWidget) {
13 @@ -695,8 +695,16 @@
17 - QRect rect(aSource.x, aSource.y, aSource.width, aSource.height);
18 - mWidget->scroll(aDelta.x, aDelta.y, rect);
19 + // Do a similar thing to what is done in GTK widget set.
20 + // Even though it's a workaround from old GTK?
21 + for(PRUint32 i = 0; i < aDestRects.Length(); ++i) {
22 + const nsIntRect& aSource = aDestRects[i];
24 + QRect rect(aSource.x, aSource.y, aSource.width, aSource.height);
25 + mWidget->scroll(aDelta.x, aDelta.y, rect);
26 + }
29 ConfigureChildren(aConfigurations);
31 // Show windows again...
32 diff -ur mozilla-1.9.2.orig/widget/src/qt/nsWindow.h mozilla-1.9.2/widget/src/qt/nsWindow.h
33 --- mozilla-1.9.2.orig/widget/src/qt/nsWindow.h
34 +++ mozilla-1.9.2/widget/src/qt/nsWindow.h
35 @@ -165,7 +165,7 @@
36 PRBool aIsSynchronous);
37 NS_IMETHOD Update();
38 void Scroll(const nsIntPoint&,
39 - const nsIntRect&,
40 + const nsTArray<nsIntRect>&,
41 const nsTArray<nsIWidget::Configuration>&);
43 virtual void* GetNativeData(PRUint32 aDataType);