mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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
This commit is contained in:
parent
0cfc91d6ce
commit
bb06ed7206
1 changed files with 1 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue