Index: Source/WebCore/page/FrameView.cpp |
=================================================================== |
--- Source/WebCore/page/FrameView.cpp (revision 102462) |
+++ Source/WebCore/page/FrameView.cpp (working copy) |
@@ -2055,8 +2055,13 @@ |
#if ENABLE(REQUEST_ANIMATION_FRAME) |
void FrameView::serviceScriptedAnimations(DOMTimeStamp time) |
{ |
+ Vector<RefPtr<Document> > documents; |
+ |
for (Frame* frame = m_frame.get(); frame; frame = frame->tree()->traverseNext()) |
- frame->document()->serviceScriptedAnimations(time); |
+ documents.append(frame->document()); |
+ |
+ for (size_t i = 0; i < documents.size(); ++i) |
+ documents[i]->serviceScriptedAnimations(time); |
} |
#endif |