| Index: Source/WebKit/chromium/src/WebViewImpl.cpp
|
| ===================================================================
|
| --- Source/WebKit/chromium/src/WebViewImpl.cpp (revision 116642)
|
| +++ Source/WebKit/chromium/src/WebViewImpl.cpp (working copy)
|
| @@ -1432,6 +1432,13 @@
|
| #if ENABLE(REQUEST_ANIMATION_FRAME)
|
| TRACE_EVENT("WebViewImpl::updateAnimations", this, 0);
|
|
|
| + WebFrameImpl* webframe = mainFrameImpl();
|
| + if (!webframe)
|
| + return;
|
| + FrameView* view = webframe->frameView();
|
| + if (!view)
|
| + return;
|
| +
|
| // Create synthetic wheel events as necessary for fling.
|
| if (m_gestureAnimation) {
|
| if (m_gestureAnimation->animate(monotonicFrameBeginTime))
|
| @@ -1440,9 +1447,6 @@
|
| m_gestureAnimation.clear();
|
| }
|
|
|
| - if (!m_page)
|
| - return;
|
| -
|
| PageWidgetDelegate::animate(m_page.get(), monotonicFrameBeginTime);
|
| #endif
|
| }
|
|
|