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+

Description Simon Fraser (smfr) 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().
Comment 1 Simon Fraser (smfr) 2009-07-30 14:29:54 PDT
<rdar://problem/7104476>
Comment 2 Simon Fraser (smfr) 2009-07-30 14:41:11 PDT
Created attachment 33840 [details]
Patch, changelog
Comment 3 Simon Fraser (smfr) 2009-07-30 14:48:10 PDT
http://trac.webkit.org/changeset/46603
Comment 4 Simon Fraser (smfr) 2009-07-30 15:45:19 PDT
Commit fixed up in r46606