Bug 27856

Summary: Animation with a timing function property in a keyframe eats CPU
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarrin
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
Attachments:
Description Flags
Testcase
none
Patch, changelog mitz: review+

Simon Fraser (smfr)
Reported 2009-07-30 14:29:24 PDT
Created attachment 33839 [details] Testcase The attached demo eats about 22% of the CPU, even though only 10 things are animating. I attach a sample; most of it is under AnimationControllerPrivate::updateAnimationTimer(bool), which seems to be firing as fast as it can become some keyframe animation is returning 0 from timeToNextService().
Attachments
Testcase (11.76 KB, text/html)
2009-07-30 14:29 PDT, Simon Fraser (smfr)
no flags
Patch, changelog (3.24 KB, patch)
2009-07-30 14:41 PDT, Simon Fraser (smfr)
mitz: review+
Simon Fraser (smfr)
Comment 1 2009-07-30 14:29:54 PDT
Simon Fraser (smfr)
Comment 2 2009-07-30 14:41:11 PDT
Created attachment 33840 [details] Patch, changelog
Simon Fraser (smfr)
Comment 3 2009-07-30 14:48:10 PDT
Simon Fraser (smfr)
Comment 4 2009-07-30 15:45:19 PDT
Commit fixed up in r46606
Note You need to log in before you can comment on or make changes to this bug.