Turn native form controls on again for Mac OS X.
b=175279 a=mconnor
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -33,31 +33,31 @@
fails == 25888-1l.html 25888-1l-ref.html # bug 25888
fails != 25888-1l.html 25888-1l-notref.html # bug 25888
fails == 25888-1r.html 25888-1r-ref.html # bug 25888
fails != 25888-1r.html 25888-1r-notref.html # bug 25888
fails == 25888-2l.html 25888-2l-ref.html # bug 25888
fails == 25888-2r.html 25888-2r-ref.html # bug 25888
fails == 25888-3l.html 25888-3l-ref.html # bug 25888
fails == 25888-3r.html 25888-3r-ref.html # bug 25888
-== 28811-1a.html 28811-1-ref.html
+fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 28811-1a.html 28811-1-ref.html # bug 381765
== 28811-1b.html 28811-1-ref.html
-== 28811-2a.html 28811-2-ref.html
+fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 28811-2a.html 28811-2-ref.html # bug 381765
== 28811-2b.html 28811-2-ref.html
== 40596-1a.html 40596-1-ref.html
!= 40596-1b.html 40596-1-ref.html
== 40596-1c.html 40596-1-ref.html
!= 40596-1d.html 40596-1-ref.html
== 40596-1e.html 40596-1-ref.html
!= 40596-1f.html 40596-1-ref.html
== 40596-1g.html 40596-1-ref.html
!= 40596-1h.html 40596-1-ref.html
== 40596-1i.html 40596-1-ref.html
!= 40596-1j.html 40596-1-ref.html
-== 84400-1.html 84400-1-ref.html
+random-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 84400-1.html 84400-1-ref.html
== 84400-2.html 84400-2-ref.html
== 97777-1.html 97777-1-ref.html
== 97777-2.html 97777-2-ref.html
== 98223-1.html 98223-1-ref.html
== 98223-2.html 98223-2-ref.html
== 105030-1.html 105030-1-ref.html
== 124903-1.html 124903-1-ref.html
== 130767-1.html 130767-1-ref.html
@@ -81,17 +81,17 @@ fails == 25888-3r.html 25888-3r-ref.html
== 243266-1.html 243266-1-ref.html
== 243302-1.html 243302-1-ref.html
== 244932-1.html 244932-1-ref.html
== 249982-1.html 249982-1-ref.html
== 253701-1.html 253701-1-ref.html
== 255820-1.html 255820-1-ref.html
== 262151-1.html 262151-1-ref.html
== 267353-1.html 267353-1-ref.html
-== 273681-1.html 273681-1-ref.html
+random-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 273681-1.html 273681-1-ref.html
== 300691-1a.html 300691-1-ref.html
== 300691-1b.html 300691-1-ref.html
== 300691-1c.html 300691-1-ref.html
== 300691-1d.html 300691-1-ref.html
== 300691-1e.html 300691-1-ref.html
== 300691-1f.html 300691-1-ref.html
== 306660-1.html 306660-1-ref.html
== 306660-2.html 306660-2-ref.html
--- a/widget/src/cocoa/nsNativeThemeCocoa.mm
+++ b/widget/src/cocoa/nsNativeThemeCocoa.mm
@@ -1279,22 +1279,16 @@ nsNativeThemeCocoa::ThemeChanged()
return NS_OK;
}
PRBool
nsNativeThemeCocoa::ThemeSupportsWidget(nsPresContext* aPresContext, nsIFrame* aFrame,
PRUint8 aWidgetType)
{
-#ifndef MOZ_MACBROWSER
- // Only support HTML widgets in Camino builds
- if (aFrame && aFrame->GetContent()->IsNodeOfType(nsINode::eHTML))
- return PR_FALSE;
-#endif
-
if (aPresContext && !aPresContext->PresShell()->IsThemeSupportEnabled())
return PR_FALSE;
PRBool retVal = PR_FALSE;
switch (aWidgetType) {
case NS_THEME_DIALOG:
case NS_THEME_WINDOW: