Skip to content
Permalink
Browse files

style: Centralize logic to ignore document colors.

This was a follow-up from the backplate stuff which I requested but didn't
happen.

Differential Revision: https://phabricator.services.mozilla.com/D53170
  • Loading branch information
emilio committed Nov 15, 2019
1 parent 0cfc91d commit bb06ed72064812c841a39c900aa1c950e348c10a
Showing with 1 addition and 7 deletions.
  1. +1 −7 components/style/gecko/media_queries.rs
@@ -274,13 +274,7 @@ impl Device {
if doc.mIsBeingUsedAsImage() {
return true;
}
let document_color_use = static_prefs::pref!("browser.display.document_color_use");
let prefs = self.pref_sheet_prefs();
match document_color_use {
1 => true,
2 => prefs.mIsChrome,
_ => !prefs.mUseAccessibilityTheme,
}
self.pref_sheet_prefs().mUseDocumentColors
}

/// Returns the default background color.

0 comments on commit bb06ed7

Please sign in to comment.
You can’t perform that action at this time.