2007-01-07 Mitz Pettel <mitz@webkit.org>
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Jan 2007 11:47:34 +0000 (11:47 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Jan 2007 11:47:34 +0000 (11:47 +0000)
commitae00b5a1c52699c052543a3e009d5da340b8556b
treeda5c48a3c7e2cf31425f0b5b0ebd4e418deb0338
parent2ce77a650cf1ee80de9fef96a1ea4de006b89371
2007-01-07  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Mark Rowe.

        - fix http://bugs.webkit.org/show_bug.cgi?id=11133

        Test: fast/forms/listbox-clip.html

        * platform/mac/PlatformScrollBarMac.mm:
        (-[WebCoreScrollBar initWithPlatformScrollbar:]): Get the correct scrollbar
        width/height based on control size.
        * rendering/RenderListBox.cpp:
        Renamed optionsSpacingLeft to optionsSpacingHorizontal since it is applied
        on both sides.
        (WebCore::RenderListBox::calcMinMaxWidth): Account for optionsSpacingHorizontal.
        Not including the spacing before went unnoticed since the scrollbar was lying
        about its width by exactly the same amount.
        (WebCore::RenderListBox::paintObject): Clip out the scrollbar.
        (WebCore::RenderListBox::paintItemForeground): Changed for the rename.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/listbox-clip-expected.checksum [new file with mode: 0644]
LayoutTests/fast/forms/listbox-clip-expected.png [new file with mode: 0644]
LayoutTests/fast/forms/listbox-clip-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/listbox-clip.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/mac/PlatformScrollBarMac.mm
WebCore/rendering/RenderListBox.cpp