Bug 1283302: Sets the default value for nglayout.initialpaint.delay to 5ms on desktop (stays 250 ms on Android) per user research conclusions. r=tn
authorJet Villegas <jvillegas@mozilla.com>
Thu, 25 Aug 2016 18:57:56 -0700
changeset 352178 b2b359340a84abda881e038d535dd90ac2fa58aa
parent 352177 affa5fe3fa4f87e68167ef2d89cf59d69cbc9165
child 352179 056085427582d32c24ae55d1c5248c31fd6a5fc1
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstn
bugs1283302
milestone52.0a1
Bug 1283302: Sets the default value for nglayout.initialpaint.delay to 5ms on desktop (stays 250 ms on Android) per user research conclusions. r=tn MozReview-Commit-ID: LWfmMoBcbnL
layout/base/nsPresShell.h
--- a/layout/base/nsPresShell.h
+++ b/layout/base/nsPresShell.h
@@ -62,19 +62,23 @@ typedef nsTHashtable<nsPtrHashKey<nsIFra
 
 // A hash table type for tracking visible regions, for use by the visibility
 // code in PresShell. The mapping is from view IDs to regions in the
 // coordinate system of that view's scrolled frame.
 typedef nsClassHashtable<nsUint64HashKey, mozilla::CSSIntRegion> VisibleRegions;
 
 } // namespace mozilla
 
-// 250ms.  This is actually pref-controlled, but we use this value if we fail
+// This is actually pref-controlled, but we use this value if we fail
 // to get the pref for any reason.
+#ifdef MOZ_WIDGET_ANDROID
 #define PAINTLOCK_EVENT_DELAY 250
+#else
+#define PAINTLOCK_EVENT_DELAY 5
+#endif
 
 class PresShell final : public nsIPresShell,
                         public nsStubDocumentObserver,
                         public nsISelectionController,
                         public nsIObserver,
                         public nsSupportsWeakReference
 {
   template <typename T> using Maybe = mozilla::Maybe<T>;