2006-12-07 Don Gibson <dgibson77@gmail.com>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 00:10:35 +0000 (00:10 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 00:10:35 +0000 (00:10 +0000)
        Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=11749
        Don't call updateThumbProportion() unnecessarily.

        * platform/ScrollBar.cpp:
        (WebCore::Scrollbar::setProportion):

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

WebCore/ChangeLog
WebCore/platform/ScrollBar.cpp

index 60384df16e6cc46e5785c5dbd41d2987112aaefd..3201f436925dbc631db5a7679ddd0e90e91e96b0 100644 (file)
@@ -1,3 +1,13 @@
+2006-12-07  Don Gibson  <dgibson77@gmail.com>
+
+        Reviewed by Darin.
+
+        http://bugs.webkit.org/show_bug.cgi?id=11749
+        Don't call updateThumbProportion() unnecessarily.
+
+        * platform/ScrollBar.cpp:
+        (WebCore::Scrollbar::setProportion):
+
 2006-12-07  Beth Dakin  <bdakin@apple.com>
 
         Reviewed by Brady.
index fa90b06d7a949c9d2553c82a3702497593d6545f..f75b19e8345f62b409aab379fdb457d4dbc63b17 100644 (file)
@@ -61,6 +61,9 @@ bool Scrollbar::setValue(int v)
 
 void Scrollbar::setProportion(int visibleSize, int totalSize)
 {
+    if (visibleSize == m_visibleSize && totalSize == m_totalSize)
+        return;
+
     m_visibleSize = visibleSize;
     m_totalSize = totalSize;