Closed
Bug 587876
Opened 14 years ago
Closed 14 years ago
Undetermined progress bars should use mozRequestAnimationFrame
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla2.0b5
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
References
Details
Attachments
(1 file)
3.17 KB,
patch
|
roc
:
review+
roc
:
approval2.0+
|
Details | Diff | Splinter Review |
Currently undetermined progress bars use a timeout per instance. They should use mozRequestAnimationFrame.
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #466495 -
Flags: review?(roc)
Comment on attachment 466495 [details] [diff] [review]
Patch, v1
Lovely!
Attachment #466495 -
Flags: review?(roc) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 3•14 years ago
|
||
Need approval before this can land.
The one approving it could kindly take care of bug 586621 as well...
Keywords: checkin-needed
Assignee | ||
Comment 4•14 years ago
|
||
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?
Attachment #466495 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 5•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b5
Comment 6•14 years ago
|
||
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.
Description
•