Closed Bug 287796 Opened 20 years ago Closed 20 years ago

style.clip animation uses entire CPU

Categories

(Core :: Web Painting, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mjpvirtual, Assigned: roc)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803

I am animating the clip boundaries on a GIF which is mostly transparent using an
assignment like:
obj.style.clip = 'rect(' + top + ' auto ' + bottom + ' auto)'
As the script runs, the amount of CPU it uses increases gradually until 100% on
2.4G CPU. Produces the correct output, though. Same on Firefox, too. Works fine
on IE. URL points to test case culled from larger file. Works fine if I animate
only the top or bottom boundary, leaving the other constant.

Reproducible: Always

Steps to Reproduce:
1. Load the web page at given URL
2. Click on the link at upper right: "Click here ..."
3. Animation iteration shown in status bar. Things start happening at iteration 22.

Actual Results:  
The image is gradually exposed. The amount of CPU gradually increases until
machine is 100% busy until script completes (121 iterations at 200mS each).

Expected Results:  
This script should consume a trivial % of the CPU.
performance issue exists on 1.7x but not the trunk.
Assignee: dbaron → roc
Component: Style System (CSS) → Layout: View Rendering
WFM, trunk Linux (1.7.2 also works fine).

mjpvirtual@yahoo.com, please reopen this bug if you see the problem in a recent
nightly build:
http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest-trunk/
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

-> WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.