Reviewed by ggaren.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Aug 2006 19:11:39 +0000 (19:11 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Aug 2006 19:11:39 +0000 (19:11 +0000)
        Fix scrollbars to reappear after the first layouting.

        * platform/qt/ScrollViewQt.cpp:
        (WebCore::ScrollView::suppressScrollBars):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16095 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/qt/ScrollViewQt.cpp

index 2192fdd97e24546101d834579a502a7fde2c32e8..b67055ea035c81a724bdb5b691abde9296ef7ef7 100644 (file)
@@ -1,3 +1,12 @@
+2006-08-29  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed by ggaren.
+
+        Fix scrollbars to reappear after the first layouting.
+
+        * platform/qt/ScrollViewQt.cpp:
+        (WebCore::ScrollView::suppressScrollBars):
+
 2006-08-29  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Darin and Geoff.
index 6161ba2dd22bf7f4a34d019a1cfc548078852e37..1707876498df2f0b92425d5a09574d4de62a8b2d 100644 (file)
@@ -183,10 +183,9 @@ ScrollBarMode ScrollView::vScrollBarMode() const
     return ScrollBarAuto;
 }
 
-void ScrollView::suppressScrollBars(bool suppressed, bool repaintOnSuppress)
+void ScrollView::suppressScrollBars(bool suppressed, bool /* repaintOnSuppress */)
 {
-    // FIXME: Is this correct?
-    setScrollBarsMode(ScrollBarAlwaysOff);
+    setScrollBarsMode(suppressed ? ScrollBarAlwaysOff : ScrollBarAuto);
 }
 
 void ScrollView::setHScrollBarMode(ScrollBarMode newMode)