From 61a878de96ca8b5fd1d5757d9b9ad823f2feb969 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Fri, 10 Nov 2006 21:03:27 +0000 Subject: [PATCH] fix select widget rendering when using thebes/cairo. b=360214 r=mento sr=pav git-svn-id: svn://10.0.0.236/trunk@215120 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsLookAndFeel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/widget/src/mac/nsLookAndFeel.cpp b/mozilla/widget/src/mac/nsLookAndFeel.cpp index 6e49ded62a0..5c799343233 100644 --- a/mozilla/widget/src/mac/nsLookAndFeel.cpp +++ b/mozilla/widget/src/mac/nsLookAndFeel.cpp @@ -552,6 +552,13 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric) case eMetric_DragThresholdY: aMetric = 4; break; + case eMetric_ScrollbarWidth: + // It would be nice to use the native metric function, but we have always + // used 16 before and it returns 15. We should make the change, but with a + // complete audit to make sure things match up. + // ::GetThemeMetric(kThemeMetricScrollBarWidth, (SInt32*)&aMetric); + aMetric = 16; + break; case eMetric_ScrollArrowStyle: ThemeScrollBarArrowStyle arrowStyle; ::GetThemeScrollBarArrowStyle ( &arrowStyle );