mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
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:
parent
e9c14bb9fc
commit
c569d314a5
2 changed files with 25 additions and 16 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue