Closed Bug 587876 Opened 14 years ago Closed 14 years ago

Undetermined progress bars should use mozRequestAnimationFrame

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b5

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

References

Details

Attachments

(1 file)

Currently undetermined progress bars use a timeout per instance. They should use mozRequestAnimationFrame.
Need approval before this can land. The one approving it could kindly take care of bug 586621 as well...
Keywords: checkin-needed
Comment on attachment 466495 [details] [diff] [review] Patch, v1 Requesting approval, this cuts down on a timer per progressmeter (which causes us to wake up much more than we need to). Really low risk.
Attachment #466495 - Flags: approval2.0?
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b5
Comment on attachment 466495 [details] [diff] [review] Patch, v1 >+ // Width of chunk is 1/5 (determined by the ratio 2000:400) of the >+ // total width of the progress bar. The left edge of the chunk >+ // starts at -1 and moves all the way to 4. It covers the distance >+ // in 2 seconds. Out of interest, where did you get those figures from? The old undetermined progressmeter was deliberately designed to take longer for wider progressmeters, so that the progress bar didn't move too quickly. I can't remember quite what the formula was but it's something like (width + 600) / 750 seconds. So for instance for a progressmeter of width 150 pixels it would take 1 second.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: