2008-09-14  Sam Weinig  <sam@webkit.org>

        Qt build fix.

        * platform/qt/PlatformScrollBarQt.cpp:
        (WebCore::PlatformScrollbar::PlatformScrollbar):
        (WebCore::PlatformScrollbar::paint):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index c95438e..dbf5678 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-14  Sam Weinig  <sam@webkit.org>
+
+        Qt build fix.
+
+        * platform/qt/PlatformScrollBarQt.cpp:
+        (WebCore::PlatformScrollbar::PlatformScrollbar):
+        (WebCore::PlatformScrollbar::paint):
+
 2008-09-13  Jan Michael Alonzo  <jmalonzo@webkit.org>
 
         Gtk build fix, not reviewed.
diff --git a/WebCore/platform/qt/PlatformScrollBarQt.cpp b/WebCore/platform/qt/PlatformScrollBarQt.cpp
index 1e9a0c5..ba21c6f 100644
--- a/WebCore/platform/qt/PlatformScrollBarQt.cpp
+++ b/WebCore/platform/qt/PlatformScrollBarQt.cpp
@@ -66,11 +66,11 @@
     if (size != RegularScrollbar)
         m_opt.state |= QStyle::State_Mini;
     if (orientation == HorizontalScrollbar) {
-        m_opt.rect.setHeight(horizontalScrollbarHeight(size));
+        m_opt.rect.setHeight(m_theme->scrollbarThickness(size));
         m_opt.orientation = Qt::Horizontal;
         m_opt.state |= QStyle::State_Horizontal;
     } else {
-        m_opt.rect.setWidth(verticalScrollbarWidth(size));
+        m_opt.rect.setWidth(m_theme->scrollbarThickness(size));
         m_opt.orientation = Qt::Vertical;
         m_opt.state &= ~QStyle::State_Horizontal;
     }
@@ -177,10 +177,10 @@
     m_opt.orientation = (orientation() == VerticalScrollbar) ? Qt::Vertical : Qt::Horizontal;
     QStyle *s = QApplication::style();
     if (orientation() == HorizontalScrollbar) {
-        m_opt.rect.setHeight(horizontalScrollbarHeight(controlSize()));
+        m_opt.rect.setHeight(m_theme->scrollbarThickness(controlSize()));
         m_opt.state |= QStyle::State_Horizontal;
     } else {
-        m_opt.rect.setWidth(verticalScrollbarWidth(controlSize()));
+        m_opt.rect.setWidth(m_theme->scrollbarThickness(controlSize()));
         m_opt.state &= ~QStyle::State_Horizontal;
     }