Summary: | Crash clicking around on animation-rich site | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> | ||||||
Component: | Layout and Rendering | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | cmarrin, darin | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
Attachments: |
|
Description
Simon Fraser (smfr)
2009-03-11 17:29:08 PDT
The problem is that getAnimatedStyleForRenderer() can return a null style, and is not expected to. Created attachment 28504 [details]
Patch, changelog
A testcase is hard, because it requires fast clicking.
Comment on attachment 28504 [details]
Patch, changelog
Seems to me we could have just done this in AnimationControllerPrivate::getAnimatedStyleForRenderer and avoided passing that renderer down all those levels. Would that be better?
Darin: I did it this way to avoid another RefPtr<RenderStyle> in getAnimatedStyleForRenderer(). But I can do it that way if you like. Created attachment 28506 [details]
Revised patch
Comment on attachment 28506 [details]
Revised patch
Seems way better.
Don't forget to fix the change log to only mention the one file you changed.
r=me
Fixed changelog. http://trac.webkit.org/changeset/41603 |