WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Dec 2007 18:40:02 +0000 (18:40 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Dec 2007 18:40:02 +0000 (18:40 +0000)
commitbca72395e1bbcf39be6c25e9720b6acceba8e2f4
tree9c0662125740bd4c56315cc3282a95e4ee690acb
parent3127608ae30c6da7f2ed232a6adfbe34c20f5c29
WebCore:

        Reviewed by Darin Adler.

        - fix http://bugs.webkit.org/show_bug.cgi?id=16426
          Divs with overflow:auto: scrollbars not correctly updated when contents change

        Test: fast/overflow/scrollbar-position-update.html

        * platform/mac/PlatformScrollBarMac.mm:
        (WebCore::PlatformScrollbar::updateThumbProportion): Update the
        NSScroller's value for the new proportions.
        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::updateScrollInfoAfterLayout): Removed unnecessary
        repaint(). Scrollbars repaint themselves as needed.

LayoutTests:

        Reviewed by Darin Adler.

        - test for http://bugs.webkit.org/show_bug.cgi?id=16426
          Divs with overflow:auto: scrollbars not correctly updated when contents change

        * fast/overflow/scrollbar-position-update.html: Added.
        * platform/mac-leopard/fast/overflow: Added.
        * platform/mac-leopard/fast/overflow/scrollbar-position-update-expected.checksum: Added.
        * platform/mac-leopard/fast/overflow/scrollbar-position-update-expected.png: Added.
        * platform/mac/fast/overflow/scrollbar-position-update-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/overflow/scrollbar-position-update.html [new file with mode: 0644]
LayoutTests/platform/mac-leopard/fast/overflow/scrollbar-position-update-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac-leopard/fast/overflow/scrollbar-position-update-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/overflow/scrollbar-position-update-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/mac/PlatformScrollBarMac.mm
WebCore/rendering/RenderLayer.cpp