Reviewed by Eric. Landed by rwlbuis.
authorrwlbuis <rwlbuis@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Aug 2006 19:27:34 +0000 (19:27 +0000)
committerrwlbuis <rwlbuis@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Aug 2006 19:27:34 +0000 (19:27 +0000)
        Fix switch logic.

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

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

index 15049cad468940b42592456cba8ed8c2f0681cd4..de58fb6c8766efda935c562c89e8ea8aaa680c9c 100644 (file)
@@ -1,3 +1,13 @@
+2006-08-27  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed by Eric.
+
+        Fix switch logic.
+
+        * platform/qt/ScrollViewQt.cpp:
+        (WebCore::ScrollView::setHScrollBarMode):
+        (WebCore::ScrollView::setVScrollBarMode):
+
 2006-08-27  Rob Buis  <buis@kde.org>
 
         Reviewed by Eric.
index 01a0ece705e4261d23dd47fdde9e5a2be136682e..18befc7b06c4923b510551bc1867247ae8a38d45 100644 (file)
@@ -193,10 +193,13 @@ void ScrollView::setHScrollBarMode(ScrollBarMode newMode)
     {
         case ScrollBarAuto:
             m_area->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
+            break;
         case ScrollBarAlwaysOff:
             m_area->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+            break;
         case ScrollBarAlwaysOn:
             m_area->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
+            break;
     }
 }
 
@@ -206,10 +209,13 @@ void ScrollView::setVScrollBarMode(ScrollBarMode newMode)
     {
         case ScrollBarAuto:
             m_area->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
+            break;
         case ScrollBarAlwaysOff:
             m_area->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+            break;
         case ScrollBarAlwaysOn:
             m_area->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
+            break;
     }
 }