| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index bcb4ac1e0ca3a636a7c01a796c221ed69ccdfba0..3e8c16940f052d4c18cba967a7e175ecfb461bbc 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -119,6 +119,7 @@
|
| #include "public/web/WebAXObject.h"
|
| #include "public/web/WebActiveWheelFlingParameters.h"
|
| #include "public/web/WebAutofillClient.h"
|
| +#include "public/web/WebBeginFrameArgs.h"
|
| #include "public/web/WebFrameClient.h"
|
| #include "public/web/WebHitTestResult.h"
|
| #include "public/web/WebInputElement.h"
|
| @@ -1700,16 +1701,13 @@ void WebViewImpl::didExitFullScreen()
|
| m_fullscreenController->didExitFullScreen();
|
| }
|
|
|
| -void WebViewImpl::animate(double monotonicFrameBeginTime)
|
| +void WebViewImpl::beginFrame(const WebBeginFrameArgs frameTime)
|
| {
|
| - TRACE_EVENT0("blink", "WebViewImpl::animate");
|
| -
|
| - if (!monotonicFrameBeginTime)
|
| - monotonicFrameBeginTime = monotonicallyIncreasingTime();
|
| + TRACE_EVENT0("blink", "WebViewImpl::beginFrame");
|
|
|
| // Create synthetic wheel events as necessary for fling.
|
| if (m_gestureAnimation) {
|
| - if (m_gestureAnimation->animate(monotonicFrameBeginTime))
|
| + if (m_gestureAnimation->animate(frameTime.lastFrameTime))
|
| scheduleAnimation();
|
| else {
|
| endActiveFlingAnimation();
|
| @@ -1726,7 +1724,7 @@ void WebViewImpl::animate(double monotonicFrameBeginTime)
|
| if (!m_page)
|
| return;
|
|
|
| - PageWidgetDelegate::animate(m_page.get(), monotonicFrameBeginTime);
|
| + PageWidgetDelegate::animate(m_page.get(), frameTime.lastFrameTime);
|
|
|
| if (m_continuousPaintingEnabled) {
|
| ContinuousPainter::setNeedsDisplayRecursive(m_rootGraphicsLayer, m_pageOverlays.get());
|
|
|