mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-30 20:07:48 +00:00
24 lines
936 B
C++
24 lines
936 B
C++
diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp
|
|
index 328b7524810322561700347fa7f26403897635a8..58d33d68e050d11ea712413ad5c2170a112e404a 100644
|
|
--- a/dom/base/Document.cpp
|
|
+++ b/dom/base/Document.cpp
|
|
@@ -467,6 +467,7 @@
|
|
#include "prtime.h"
|
|
#include "prtypes.h"
|
|
#include "xpcpublic.h"
|
|
+#include "mozilla/ZenStyleSheetCache.h"
|
|
|
|
// clang-format off
|
|
#include "mozilla/Encoding.h"
|
|
@@ -3198,6 +3199,10 @@ void Document::FillStyleSetUserAndUASheets() {
|
|
for (StyleSheet* sheet : *sheetService->UserStyleSheets()) {
|
|
styleSet.AppendStyleSheet(*sheet);
|
|
}
|
|
+ if (auto sheet = zen::ZenStyleSheetCache::Singleton()->GetModsSheet(); sheet && IsInChromeDocShell()) {
|
|
+ // The mods sheet is only used in the chrome docshell.
|
|
+ styleSet.AppendStyleSheet(*sheet);
|
|
+ }
|
|
|
|
StyleSheet* sheet = IsInChromeDocShell() ? cache->GetUserChromeSheet()
|
|
: cache->GetUserContentSheet();
|