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

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: Fixing Adam+Shane's feedback. 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 02f1c47be8eb97f3145a27573448eb436ff8e679..bfa647fb616b51e1e4321ccc25d3fa63ba5deac3 100644
--- a/Source/web/PageWidgetDelegate.cpp
+++ b/Source/web/PageWidgetDelegate.cpp
@@ -59,13 +59,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