Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1559)

Unified Diff: Source/web/PageWidgetDelegate.cpp

Issue 321373003: Changing animate to beginFrame and use struct rather than naked double to allow extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing onto master. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/PageWidgetDelegate.cpp
diff --git a/Source/web/PageWidgetDelegate.cpp b/Source/web/PageWidgetDelegate.cpp
index e2735262e119fcb1bb184f62b343489c2ab03ffb..f36a0bae8618e5ddb69716c5422280c234042cc5 100644
--- a/Source/web/PageWidgetDelegate.cpp
+++ b/Source/web/PageWidgetDelegate.cpp
@@ -60,13 +60,13 @@ static inline FrameView* mainFrameView(Page* page)
return page->deprecatedLocalMainFrame()->view();
}
-void PageWidgetDelegate::animate(Page* page, double monotonicFrameBeginTime)
+void PageWidgetDelegate::animate(Page* page, WebFrameTime frameTime)
{
RefPtr<FrameView> view = mainFrameView(page);
if (!view)
return;
- page->autoscrollController().animate(monotonicFrameBeginTime);
- page->animator().serviceScriptedAnimations(monotonicFrameBeginTime);
+ page->autoscrollController().animate(frameTime);
+ page->animator().serviceScriptedAnimations(frameTime.displayFrameTime);
}
void PageWidgetDelegate::layout(Page* page)

Powered by Google App Engine
This is Rietveld 408576698