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
7 nsWindow::Scroll(const nsIntPoint& aDelta,
8 - const nsIntRect& aSource,
9 + const nsTArray<nsIntRect>& aDestRects,
10 const nsTArray<nsIWidget::Configuration>& aConfigurations)
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);
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
36 PRBool aIsSynchronous);
38 void Scroll(const nsIntPoint&,
40 + const nsTArray<nsIntRect>&,
41 const nsTArray<nsIWidget::Configuration>&);
43 virtual void* GetNativeData(PRUint32 aDataType);