From 63879a6f99af6c4de47e20b1d3b50398841abc23 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Tue, 6 Jun 2006 16:34:16 +0000 Subject: [PATCH] Bug 339192: Readonly textboxes shouldn't look active, patch by Phil Ringnalda , r=hwaara, sr=pink --- widget/src/mac/nsNativeThemeMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/mac/nsNativeThemeMac.cpp b/widget/src/mac/nsNativeThemeMac.cpp index f6b0cdea4c15..aafc81c15257 100644 --- a/widget/src/mac/nsNativeThemeMac.cpp +++ b/widget/src/mac/nsNativeThemeMac.cpp @@ -467,7 +467,7 @@ nsNativeThemeMac::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame* break; case NS_THEME_TEXTFIELD: - DrawEditText ( macRect, IsDisabled(aFrame) ); + DrawEditText ( macRect, (IsDisabled(aFrame) || IsReadOnly(aFrame)) ); break; case NS_THEME_PROGRESSBAR: