Bug 1283302: Sets the default value for nglayout.initialpaint.delay to 5ms (was 250 ms) per user research conclusions. r=mattwoodrow
☠☠ backed out by 1052561d1faf ☠ ☠
authorJet Villegas <jvillegas@mozilla.com>
Wed, 06 Jul 2016 19:08:29 -0700
changeset 344004 24ec7aba60e708ca69e7dbe149e8f822794db4a3
parent 344003 032810ad52834d0cf507cc2d357aae8cf877279e
child 344005 00c32030641b728ffb7a1ea4779f3340ad40650d
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1283302
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1283302: Sets the default value for nglayout.initialpaint.delay to 5ms (was 250 ms) per user research conclusions. r=mattwoodrow
layout/base/nsPresShell.h
--- a/layout/base/nsPresShell.h
+++ b/layout/base/nsPresShell.h
@@ -61,19 +61,19 @@ 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
+// 5ms.  This is actually pref-controlled, but we use this value if we fail
 // to get the pref for any reason.
-#define PAINTLOCK_EVENT_DELAY 250
+#define PAINTLOCK_EVENT_DELAY 5
 
 class PresShell final : public nsIPresShell,
                         public nsStubDocumentObserver,
                         public nsISelectionController,
                         public nsIObserver,
                         public nsSupportsWeakReference
 {
   template <typename T> using Maybe = mozilla::Maybe<T>;