Turn native form controls on again for Mac OS X. b=175279 a=mconnor
authorjoshmoz@gmail.com
Wed, 23 May 2007 12:49:24 -0700
changeset 1791 405c37075debcc1170f0794ae06bf22e87ff821a
parent 1790 c807ac6313a156481d4888175cb28a9997fdd38a
child 1792 384c2f37c53a66dea7059cddedd7195b84714654
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconnor
bugs175279
milestone1.9a5pre
Turn native form controls on again for Mac OS X. b=175279 a=mconnor
layout/reftests/bugs/reftest.list
widget/src/cocoa/nsNativeThemeCocoa.mm
--- 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: