2009-06-02 Adam Langley <agl@google.com>
Reviewed by Eric Seidel.
The previous code was assuming that we'll be painting buttons on the scrollbar
which isn't true on Linux. To reproduce, resize a page with scrollbars until
they are less than two widths high.
This will need pixel test baselines to be updated in the Chromium tree.
* platform/chromium/ScrollbarThemeChromium.cpp: move this function...
* platform/chromium/ScrollbarThemeChromiumWin.cpp:
(WebCore::ScrollbarThemeChromium::trackRect): ... to here
* platform/chromium/ScrollbarThemeChromiumLinux.cpp:
(WebCore::ScrollbarThemeChromium::trackRect): add an alternative which
doesn't remove the track when the scrollbar is less than two widths
high.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@44378
268f45cc-cd09-0410-ab3c-
d52691b4dbfc