Attempt to fix Mac bustage.

git-svn-id: svn://10.0.0.236/trunk@56475 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com 1999-12-23 03:08:57 +00:00
parent 3c45f9a79e
commit 4a66a03de0
2 changed files with 8 additions and 8 deletions

View File

@ -143,7 +143,7 @@ static NS_DEFINE_IID(kIScrollableFrameIID, NS_ISCROLLABLE_FRAME_IID);
// This data member is initialized from the layout.reflow.timeslice pref.
// It is used only when asynchronous reflow is enabled by setting gDoAsyncReflow to PR_TRUE.
#define NS_MAX_REFLOW_TIME 1000000
static PRTime gMaxRCProcessingTime = -1;
static PRTime gMaxRCProcessingTime = (PRTime) -1;
// Largest chunk size we recycle
static const int gMaxRecycledSize = 200;
@ -810,9 +810,9 @@ PresShell::Init(nsIDocument* aDocument,
result = eventService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(mEventQueue));
if (gMaxRCProcessingTime == -1) {
if (gMaxRCProcessingTime == (PRTime) -1) {
// First, set the defaults
gMaxRCProcessingTime = NS_MAX_REFLOW_TIME;
gMaxRCProcessingTime = (PRTime) NS_MAX_REFLOW_TIME;
gDoAsyncReflow = PR_FALSE;
// Get the prefs service
@ -1949,7 +1949,7 @@ PresShell::ProcessReflowCommands()
printf("Time spent in PresShell::ProcessReflowCommands(), this=%p, time=%d micro seconds\n", this, reflowTime);
}
#endif
mAccumulatedReflowTime = 0;
mAccumulatedReflowTime = (PRTime) 0;
}
#ifdef DEBUG

View File

@ -143,7 +143,7 @@ static NS_DEFINE_IID(kIScrollableFrameIID, NS_ISCROLLABLE_FRAME_IID);
// This data member is initialized from the layout.reflow.timeslice pref.
// It is used only when asynchronous reflow is enabled by setting gDoAsyncReflow to PR_TRUE.
#define NS_MAX_REFLOW_TIME 1000000
static PRTime gMaxRCProcessingTime = -1;
static PRTime gMaxRCProcessingTime = (PRTime) -1;
// Largest chunk size we recycle
static const int gMaxRecycledSize = 200;
@ -810,9 +810,9 @@ PresShell::Init(nsIDocument* aDocument,
result = eventService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(mEventQueue));
if (gMaxRCProcessingTime == -1) {
if (gMaxRCProcessingTime == (PRTime) -1) {
// First, set the defaults
gMaxRCProcessingTime = NS_MAX_REFLOW_TIME;
gMaxRCProcessingTime = (PRTime) NS_MAX_REFLOW_TIME;
gDoAsyncReflow = PR_FALSE;
// Get the prefs service
@ -1949,7 +1949,7 @@ PresShell::ProcessReflowCommands()
printf("Time spent in PresShell::ProcessReflowCommands(), this=%p, time=%d micro seconds\n", this, reflowTime);
}
#endif
mAccumulatedReflowTime = 0;
mAccumulatedReflowTime = (PRTime) 0;
}
#ifdef DEBUG