Enabling async reflow after the document has loaded.
git-svn-id: svn://10.0.0.236/trunk@59443 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3bbaed9c5f
commit
cdc51db942
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user