Bug 1634602 - Minor follow-up cleanups. a=jcristau
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 03 Jun 2020 09:44:41 +0000
changeset 596957 d6fc47eb7f3bce9812eed407f06dffeb7156d793
parent 596956 307b75879bcaade2b454b512d721d82acd4a8478
child 596958 e771cf8d71d4e20799b83ffb0b59fc677dfd1e28
push id13215
push userjcristau@mozilla.com
push dateThu, 04 Jun 2020 13:33:19 +0000
treeherdermozilla-beta@d6fc47eb7f3b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcristau
bugs1634602
milestone78.0
Bug 1634602 - Minor follow-up cleanups. a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D78020
dom/base/Document.cpp
dom/base/Document.h
--- a/dom/base/Document.cpp
+++ b/dom/base/Document.cpp
@@ -16316,18 +16316,19 @@ void Document::RemoveToplevelLoadingDocu
       if (idleScheduler) {
         idleScheduler->SendPrioritizedOperationDone();
       }
     }
   }
 }
 
 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;
   }
 
   if (nsPresContext* pc = GetPresContext()) {
     if (auto devtoolsOverride = pc->GetOverridePrefersColorScheme()) {
       return *devtoolsOverride;
     }
 
--- a/dom/base/Document.h
+++ b/dom/base/Document.h
@@ -3864,17 +3864,17 @@ class Document : public nsINode,
   }
 
   void SetPrototypeDocument(nsXULPrototypeDocument* aPrototype);
 
   nsIPermissionDelegateHandler* PermDelegateHandler();
 
   // 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.
   static bool UseOverlayScrollbars(const Document* aDocument);
 
   static bool HasRecentlyStartedForegroundLoads();
 
   static bool AutomaticStorageAccessCanBeGranted(nsIPrincipal* aPrincipal);