зеркало из https://github.com/mozilla/pjs.git
Enabling async reflow after the document has loaded.
This commit is contained in:
Родитель
14d480a8f6
Коммит
7065652faa
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче