style: Do not ignore color: transparent in high contrast mode.

PDFJS uses it, for example to allow text selection. It's not great if it shows
on top of the actual PDF :-)

Differential Revision: https://phabricator.services.mozilla.com/D58703
This commit is contained in:
Emilio Cobos Álvarez 2020-01-14 20:25:03 +00:00
parent e9c14bb9fc
commit c569d314a5
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
2 changed files with 25 additions and 16 deletions

View file

@ -280,6 +280,11 @@ impl Device {
convert_nscolor_to_rgba(self.pref_sheet_prefs().mDefaultBackgroundColor)
}
/// Returns the default foreground color.
pub fn default_color(&self) -> RGBA {
convert_nscolor_to_rgba(self.pref_sheet_prefs().mDefaultColor)
}
/// Returns the current effective text zoom.
#[inline]
fn effective_text_zoom(&self) -> f32 {