Use the platform independent scrollbar code.
authorzack <zack@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 11:30:48 +0000 (11:30 +0000)
committerzack <zack@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 11:30:48 +0000 (11:30 +0000)
Remove the redundant empty stubs and forward
few missing platform scrollbar calls
r=Lars

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

WebCore/ChangeLog
WebCore/WebCore.pro
WebCore/platform/qt/PlatformScrollBarQt.cpp

index b4542f4..bb59f1d 100644 (file)
@@ -1,3 +1,16 @@
+2007-01-29  Zack Rusin  <zack@kde.org>
+
+        Reviewed by Lars
+
+        Use the platform independent scrollbar code.
+        Remove the redundant empty stubs and forward
+        few missing platform scrollbar calls.
+
+        * WebCore.pro:
+        * platform/qt/PlatformScrollBarQt.cpp:
+        (WebCore::PlatformScrollbar::paint):
+        (WebCore::PlatformScrollbar::setRect):
+
 2007-01-29  Lars Knoll <lars@trolltech.com>
 
         Reviewed by Zack
index ab3978c..06c5290 100644 (file)
@@ -550,6 +550,7 @@ SOURCES += \
     platform/TextEncoding.cpp \
     platform/TextEncodingRegistry.cpp \
     platform/Logging.cpp \
+    platform/ScrollBar.cpp \
     platform/graphics/Color.cpp \
     platform/graphics/ImageBuffer.cpp \
     platform/DeprecatedPtrListImpl.cpp \
index 1ff6919..a9f8379 100644 (file)
 
 namespace WebCore {    
 
-Scrollbar::Scrollbar(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize)
-{
-}
-    
-void Scrollbar::setSteps(int, int)
-{
-    notImplemented();
-}
-
-bool Scrollbar::scroll(ScrollDirection, ScrollGranularity, float)
-{
-    notImplemented();
-    return 0;
-}
-
-bool Scrollbar::setValue(int)
-{
-    notImplemented();
-    return 0;
-}
-
-void Scrollbar::setProportion(int, int)
-{
-    notImplemented();
-}
-
 PlatformScrollbar::PlatformScrollbar(ScrollbarClient* client, ScrollbarOrientation orientation,
                                      ScrollbarControlSize controlSize)
     : Scrollbar(client, orientation, controlSize)
@@ -82,7 +56,7 @@ void PlatformScrollbar::setEnabled(bool e)
 
 void PlatformScrollbar::paint(GraphicsContext* ctxt, const IntRect& damageRect)
 {
-    //Widget::paint(ctxt, damageRect);
+    Widget::paint(ctxt, damageRect);
 }
 
 void PlatformScrollbar::updateThumbPosition()
@@ -95,9 +69,9 @@ void PlatformScrollbar::updateThumbProportion()
     notImplemented();
 }
 
-void PlatformScrollbar::setRect(const IntRect&)
+void PlatformScrollbar::setRect(const IntRect& rect)
 {
-    notImplemented();
+    setFrameGeometry(rect);
 }