diff --git a/layout/base/nsPresContext.h b/layout/base/nsPresContext.h
index 5f27c288fd027cf245421e7f049103a7e19da18a..fcd65b74c5881a75d9cb6847379e32d0a0652e67 100644
--- a/layout/base/nsPresContext.h
+++ b/layout/base/nsPresContext.h
@@ -594,6 +594,22 @@ class nsPresContext : public nsISupports,
    */
   void SetColorSchemeOverride(mozilla::dom::PrefersColorSchemeOverride);
 
+  // Zen boosts override. SVG images render in their own document, which has no
+  // BrowsingContext to carry the page's boost, so the host propagates it here.
+  void SetZenBoostsOverride(nscolor aAccent, float aComplementaryRotation,
+                            bool aInverted) {
+    mZenBoostsOverrideAccent = aAccent;
+    mZenBoostsOverrideComplementaryRotation = aComplementaryRotation;
+    mZenBoostsOverrideInverted = aInverted;
+    mHasZenBoostsOverride = true;
+  }
+  bool HasZenBoostsOverride() const { return mHasZenBoostsOverride; }
+  nscolor ZenBoostsOverrideAccent() const { return mZenBoostsOverrideAccent; }
+  float ZenBoostsOverrideComplementaryRotation() const {
+    return mZenBoostsOverrideComplementaryRotation;
+  }
+  bool ZenBoostsOverrideInverted() const { return mZenBoostsOverrideInverted; }
+
   /**
    * Sets the effective link parameters overrides, and invalidate stuff as
    * needed.
@@ -1434,6 +1450,11 @@ class nsPresContext : public nsISupports,
   mozilla::StyleForcedColors mForcedColors;
   mozilla::StyleLinkParameters mLinkParameters;
 
+  nscolor mZenBoostsOverrideAccent = 0;
+  float mZenBoostsOverrideComplementaryRotation = 0.0f;
+  bool mZenBoostsOverrideInverted = false;
+  bool mHasZenBoostsOverride = false;
+
  protected:
   virtual ~nsPresContext();
 
