Touch down smooth progress bar changes from PROGRESS_19981006_BRANCH. a=nisheeth.

This commit is contained in:
waterson%netscape.com 1998-10-08 21:35:07 +00:00
Родитель 768bac5f0e
Коммит aa4668f7b1
3 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -3766,7 +3766,9 @@ lo_FinishLayout(MWContext *context, lo_DocState *state, int32 mocha_event)
*/
if (state == NULL)
{
#if !defined(SMOOTH_PROGRESS)
FE_SetProgressBarPercent(context, 100);
#endif /* !defined(SMOOTH_PROGRESS) */
#ifdef OLD_MSGS
FE_Progress(context, "Layout Phase Complete");
#endif /* OLD_MSGS */
@ -3808,7 +3810,9 @@ lo_FinishLayout(MWContext *context, lo_DocState *state, int32 mocha_event)
*/
if (state == NULL)
{
#if !defined(SMOOTH_PROGRESS)
FE_SetProgressBarPercent(context, 100);
#endif /* !defined(SMOOTH_PROGRESS) */
#ifdef OLD_MSGS
FE_Progress(context, "Layout Phase Complete");
#endif /* OLD_MSGS */
@ -3878,8 +3882,10 @@ lo_FinishLayout(MWContext *context, lo_DocState *state, int32 mocha_event)
STYLESTACK_Purge(top_state->style_stack);
}
#if !defined(SMOOTH_PROGRESS)
if(!state->top_state->is_binary)
FE_SetProgressBarPercent(context, 100);
#endif /* !defined(SMOOTH_PROGRESS) */
#ifdef OLD_MSGS
FE_Progress(context, "Layout Phase Complete");

Просмотреть файл

@ -239,8 +239,10 @@ void LO_RelayoutOnResize(MWContext *context, int32 width, int32 height, int32 le
state->y += state->win_bottom;
LO_SetDocumentDimensions(context, state->max_width, state->y);
#if !defined(SMOOTH_PROGRESS)
if(!state->top_state->is_binary)
FE_SetProgressBarPercent(context, 100);
#endif /* !defined(SMOOTH_PRORGESS) */
lo_FreeLayoutData(context, state);
FE_FinishedLayout(context);

Просмотреть файл

@ -4560,8 +4560,10 @@ void lo_UpdateFEProgressBar( MWContext *context, lo_DocState *state )
if ((percent == 100)||(percent < 0)||
(percent > (state->top_state->layout_percent + 1)))
{
#if !defined(SMOOTH_PROGRESS)
if(!state->top_state->is_binary)
FE_SetProgressBarPercent(context, percent);
#endif /* !defined(SMOOTH_PROGRESS) */
state->top_state->layout_percent = (intn)percent;
}
}