mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 06:32:05 -08:00
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
# Remaps custom stylesheet path to the GRE directory
|
|
|
|
diff --git a/layout/style/GlobalStyleSheetCache.cpp b/layout/style/GlobalStyleSheetCache.cpp
|
|
index 6a8507a..e3c0be4 100644
|
|
--- a/layout/style/GlobalStyleSheetCache.cpp
|
|
+++ b/layout/style/GlobalStyleSheetCache.cpp
|
|
@@ -5,6 +5,7 @@
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "GlobalStyleSheetCache.h"
|
|
+#include "nsDirectoryServiceDefs.h"
|
|
|
|
#include "nsAppDirectoryServiceDefs.h"
|
|
#include "nsExceptionHandler.h"
|
|
@@ -450,17 +451,17 @@ void GlobalStyleSheetCache::InitFromProfile() {
|
|
nsCOMPtr<nsIFile> contentFile;
|
|
nsCOMPtr<nsIFile> chromeFile;
|
|
|
|
- NS_GetSpecialDirectory(NS_APP_USER_CHROME_DIR, getter_AddRefs(contentFile));
|
|
+ NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(contentFile));
|
|
if (!contentFile) {
|
|
- // if we don't have a profile yet, that's OK!
|
|
+ printf_stderr("Could not find GRE directory.\n");
|
|
return;
|
|
}
|
|
|
|
contentFile->Clone(getter_AddRefs(chromeFile));
|
|
if (!chromeFile) return;
|
|
|
|
- contentFile->Append(u"userContent.css"_ns);
|
|
- chromeFile->Append(u"userChrome.css"_ns);
|
|
+ contentFile->Append(u"content.css"_ns);
|
|
+ chromeFile->Append(u"chrome.css"_ns);
|
|
|
|
mUserContentSheet = LoadSheetFile(contentFile, eUserSheetFeatures);
|
|
mUserChromeSheet = LoadSheetFile(chromeFile, eUserSheetFeatures);
|