Enabling async reflow after the document has loaded.

This commit is contained in:
nisheeth%netscape.com 2000-02-02 00:19:52 +00:00
parent fabff05162
commit ac04e405d8
2 changed files with 4 additions and 4 deletions

View File

@ -801,11 +801,11 @@ PresShell::Init(nsIDocument* aDocument,
// First, set the defaults
gMaxRCProcessingTime = NS_MAX_REFLOW_TIME;
gDoAsyncReflow = PR_FALSE;
gDoAsyncReflowAfterDocLoad = PR_FALSE;
gDoAsyncReflowAfterDocLoad = PR_TRUE;
// Get the prefs service
NS_WITH_SERVICE(nsIPref, prefs, kPrefServiceCID, &result);
if (NS_SUCCEEDED(result)) {
if (NS_SUCCEEDED(result)) {
prefs->GetIntPref("layout.reflow.timeslice", &gMaxRCProcessingTime);
prefs->GetBoolPref("layout.reflow.async", &gDoAsyncReflow);
prefs->GetBoolPref("layout.reflow.async.afterDocLoad", &gDoAsyncReflowAfterDocLoad);

View File

@ -801,11 +801,11 @@ PresShell::Init(nsIDocument* aDocument,
// First, set the defaults
gMaxRCProcessingTime = NS_MAX_REFLOW_TIME;
gDoAsyncReflow = PR_FALSE;
gDoAsyncReflowAfterDocLoad = PR_FALSE;
gDoAsyncReflowAfterDocLoad = PR_TRUE;
// Get the prefs service
NS_WITH_SERVICE(nsIPref, prefs, kPrefServiceCID, &result);
if (NS_SUCCEEDED(result)) {
if (NS_SUCCEEDED(result)) {
prefs->GetIntPref("layout.reflow.timeslice", &gMaxRCProcessingTime);
prefs->GetBoolPref("layout.reflow.async", &gDoAsyncReflow);
prefs->GetBoolPref("layout.reflow.async.afterDocLoad", &gDoAsyncReflowAfterDocLoad);