Author: andrews
Date: 2006-08-10 04:32:56 -0400 (Thu, 10 Aug 2006)
New Revision: 63576

Modified:
   trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
   trunk/mcs/class/System.Web/System.Web.Compilation/ThemeDirectoryCompiler.cs
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/Page.cs
Log:
render CSS path as a virtual path


Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-08-10 
06:20:36 UTC (rev 63575)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-08-10 
08:32:56 UTC (rev 63576)
@@ -1,3 +1,7 @@
+2006-08-10  Andrew Skiba  <[EMAIL PROTECTED]>
+
+       * ThemeDirectoryCompiler.cs: render css path as a virtual path.
+
 2006-08-08  Vladimir Krasnov  <[EMAIL PROTECTED]>
 
        * added ThemeDirectoryCompiler.jvm.cs

Modified: 
trunk/mcs/class/System.Web/System.Web.Compilation/ThemeDirectoryCompiler.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ThemeDirectoryCompiler.cs 
2006-08-10 06:20:36 UTC (rev 63575)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ThemeDirectoryCompiler.cs 
2006-08-10 08:32:56 UTC (rev 63576)
@@ -51,7 +51,7 @@
                        string[] css_files = Directory.GetFiles (physicalPath, 
"*.css");
                        string[] css_urls = new string[css_files.Length];
                        for (int i = 0; i < css_files.Length; i++)
-                               css_urls [i] = UrlUtils.Combine (physicalPath, 
Path.GetFileName (css_files [i]));
+                               css_urls [i] = virtualPath + Path.GetFileName 
(css_files [i]);
                        ptp.LinkedStyleSheets = css_urls;
                        
                        ptp.RootBuilder = new RootBuilder ();

Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-08-10 06:20:36 UTC 
(rev 63575)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-08-10 08:32:56 UTC 
(rev 63576)
@@ -1,3 +1,7 @@
+2006-08-10  Andrew Skiba <[EMAIL PROTECTED]>
+
+       * Page.cs: render css path as a virtual path.
+
 2006-08-09  Robert Jordan  <[EMAIL PROTECTED]>
 
        * Control.cs: add the 2.0 ResolveClientUrl method.

Modified: trunk/mcs/class/System.Web/System.Web.UI/Page.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Page.cs    2006-08-10 06:20:36 UTC 
(rev 63575)
+++ trunk/mcs/class/System.Web/System.Web.UI/Page.cs    2006-08-10 08:32:56 UTC 
(rev 63576)
@@ -1809,10 +1809,10 @@
                        themes.AddRange (StyleSheetPageTheme.GetStyleSheets ());
                if (PageTheme != null)
                        themes.AddRange (PageTheme.GetStyleSheets ());
-               
+
                foreach (string lss in themes) {
                        HtmlLink hl = new HtmlLink ();
-                       hl.Href = lss;
+                       hl.Href = ResolveUrl (lss);
                        hl.Attributes["type"] = "text/css";
                        hl.Attributes["rel"] = "stylesheet";
                        Header.Controls.Add (hl);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to