Commit 601ea05e authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1634602 - Minor follow-up cleanups. a=jcristau

Differential Revision: https://phabricator.services.mozilla.com/D78020
parent 422d540f
......@@ -16321,8 +16321,9 @@ void Document::RemoveToplevelLoadingDocument(Document* aDoc) {
}
 
StylePrefersColorScheme Document::PrefersColorScheme(
Document::IgnoreRFP aIgnoreRFP /* = IgnoreRFP::No */) const {
if (aIgnoreRFP == IgnoreRFP::No && nsContentUtils::ShouldResistFingerprinting(this)) {
IgnoreRFP aIgnoreRFP) const {
if (aIgnoreRFP == IgnoreRFP::No &&
nsContentUtils::ShouldResistFingerprinting(this)) {
return StylePrefersColorScheme::Light;
}
 
......
......@@ -3869,7 +3869,7 @@ class Document : public nsINode,
// CSS prefers-color-scheme media feature for this document.
enum class IgnoreRFP { No, Yes };
StylePrefersColorScheme PrefersColorScheme(IgnoreRFP aIgnoreRFP = IgnoreRFP::No) const;
StylePrefersColorScheme PrefersColorScheme(IgnoreRFP = IgnoreRFP::No) const;
// Returns true if we use overlay scrollbars on the system wide or on the
// given document.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment