Explorar el Código

Prepare to use HttpBrowserCapabilities. Does not affect the flow yet.

svn path=/trunk/mcs/; revision=62672
Andrew Skiba hace 19 años
padre
commit
dce1bf64e8

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,8 @@
+2006-07-17 Andrew Skiba <[email protected]>
+
+	* Image.cs: prepare to use HttpBrowserCapabilities. Does not
+	affect the flow yet.
+
 2006-07-17 Andrew Skiba <[email protected]>
 
 	* SiteMapPath.cs: fixes for SiteMapPathTest.Render_xxx tests.

+ 6 - 0
mcs/class/System.Web/System.Web.UI.WebControls/Image.cs

@@ -225,8 +225,14 @@ namespace System.Web.UI.WebControls {
 				break;
 			}
 #if NET_2_0
+#if BUG_78875_FIXED
+			if (Context.Request.Browser.SupportsCss)
+#endif
 			if (BorderWidth.IsEmpty)
 				writer.AddStyleAttribute (HtmlTextWriterStyle.BorderWidth, "0px");
+#if BUG_78875_FIXED
+			else
+#endif
 #else
 			// if border-with is not specified in style or 
 			// no style is defined - set image to no border