2010-01-07 Maciej Stachowiak <mjs@apple.com>
[WebKit.git] / WebKit / mac / WebView / WebView.mm
index f8b72b74eeac82b1b7ebf1af11bab793a4a73567..f2e816fa3975fc14ea49fccc24a71d67a5dcefc5 100644 (file)
@@ -1301,6 +1301,8 @@ static bool fastDocumentTeardownEnabled()
     settings->setApplicationChromeMode([preferences applicationChromeModeEnabled]);
     if ([preferences userStyleSheetEnabled]) {
         NSString* location = [[preferences userStyleSheetLocation] _web_originalDataAsString];
+        if ([location isEqualToString:@"apple-dashboard://stylesheet"])
+            location = @"file:///System/Library/PrivateFrameworks/DashboardClient.framework/Resources/widget.css";
         settings->setUserStyleSheetLocation([NSURL URLWithString:(location ? location : @"")]);
     } else
         settings->setUserStyleSheetLocation([NSURL URLWithString:@""]);