From 8f0f8f4f9727de5b27e8df72e45415aaa0d35ac0 Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Thu, 26 Dec 2002 21:03:23 +0000 Subject: [PATCH] Reduce paint suppression timeout from 1200ms to 250ms (to match Phoenix and Chimera). b=180241 r=rjesup sr=bzbarsky --- layout/base/nsPresShell.cpp | 6 ++++-- layout/html/base/src/nsPresShell.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index a09fd0ef6947..541fb4b329ea 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -1346,8 +1346,10 @@ protected: nsCOMPtr mPaintSuppressionTimer; // This timer controls painting suppression. Until it fires // or all frames are constructed, we won't paint anything but // our background and scrollbars. -#define PAINTLOCK_EVENT_DELAY 1200 // 1200 ms. 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 // 250ms. This is actually + // pref-controlled, but we use this + // value if we fail to get the pref + // for any reason. static void sPaintSuppressionCallback(nsITimer* aTimer, void* aPresShell); // A callback for the timer. diff --git a/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index a09fd0ef6947..541fb4b329ea 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/layout/html/base/src/nsPresShell.cpp @@ -1346,8 +1346,10 @@ protected: nsCOMPtr mPaintSuppressionTimer; // This timer controls painting suppression. Until it fires // or all frames are constructed, we won't paint anything but // our background and scrollbars. -#define PAINTLOCK_EVENT_DELAY 1200 // 1200 ms. 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 // 250ms. This is actually + // pref-controlled, but we use this + // value if we fail to get the pref + // for any reason. static void sPaintSuppressionCallback(nsITimer* aTimer, void* aPresShell); // A callback for the timer.