summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 21:51:04 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 21:51:04 +0000
commitd54f53a6034082c5600c0cf0432edae1c5bc2b39 (patch)
tree0e7e2f856b0a285694212572ad69c838fdf29cdb /webkit/port
parente6ca8bb76d4d71905a638d133777ab9fdbe3f065 (diff)
downloadchromium_src-d54f53a6034082c5600c0cf0432edae1c5bc2b39.zip
chromium_src-d54f53a6034082c5600c0cf0432edae1c5bc2b39.tar.gz
chromium_src-d54f53a6034082c5600c0cf0432edae1c5bc2b39.tar.bz2
Remove a hack that was unnecessarily affecting Linux layout tests.
Review URL: http://codereview.chromium.org/14488 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7102 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/platform/chromium/ScrollbarThemeChromium.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/port/platform/chromium/ScrollbarThemeChromium.cpp b/webkit/port/platform/chromium/ScrollbarThemeChromium.cpp
index ea04d22..4f167f9 100644
--- a/webkit/port/platform/chromium/ScrollbarThemeChromium.cpp
+++ b/webkit/port/platform/chromium/ScrollbarThemeChromium.cpp
@@ -172,6 +172,9 @@ IntSize ScrollbarThemeChromium::buttonSize(Scrollbar* scrollbar)
// times thickness pixels left. This allows the scrollbar to scale down
// and function even at tiny sizes.
+ int thickness = scrollbarThickness();
+
+#if !defined(__linux__)
// In layout test mode, we force the button "girth" (i.e., the length of
// the button along the axis of the scrollbar) to be a fixed size.
// FIXME: This is retarded! scrollbarThickness is already fixed in layout
@@ -179,8 +182,11 @@ IntSize ScrollbarThemeChromium::buttonSize(Scrollbar* scrollbar)
// preserving this hack avoids having to rebaseline pixel tests.
const int kLayoutTestModeGirth = 17;
- int thickness = scrollbarThickness();
int girth = ChromiumBridge::layoutTestMode() ? kLayoutTestModeGirth : thickness;
+#else
+ int girth = thickness;
+#endif
+
if (scrollbar->orientation() == HorizontalScrollbar) {
int width = scrollbar->width() < 2 * girth ? scrollbar->width() / 2 : girth;
return IntSize(width, thickness);