mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-25 22:38:32 +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 f5dc958b940b806cc471760ce91a26b1111aafa5..d6841cbef64374d14bc2941651e33669c28e2958 100644
|
|
--- a/dom/base/Document.cpp
|
|
+++ b/dom/base/Document.cpp
|
|
@@ -465,6 +465,7 @@
|
|
#include "prtime.h"
|
|
#include "prtypes.h"
|
|
#include "xpcpublic.h"
|
|
+#include "mozilla/ZenStyleSheetCache.h"
|
|
|
|
// clang-format off
|
|
#include "mozilla/Encoding.h"
|
|
@@ -3275,6 +3276,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();
|