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

Side by Side Diff: sky/engine/core/page/AutoscrollController.cpp

Issue 875283003: Make all callers of scheduleAnimation() use scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/page/PageAnimator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 switch (m_autoscrollType) { 165 switch (m_autoscrollType) {
166 case AutoscrollForDragAndDrop: 166 case AutoscrollForDragAndDrop:
167 if (WTF::currentTime() - m_dragAndDropAutoscrollStartTime > autoscrollDe lay) 167 if (WTF::currentTime() - m_dragAndDropAutoscrollStartTime > autoscrollDe lay)
168 m_autoscrollRenderer->autoscroll(m_dragAndDropAutoscrollReferencePos ition); 168 m_autoscrollRenderer->autoscroll(m_dragAndDropAutoscrollReferencePos ition);
169 break; 169 break;
170 case AutoscrollForSelection: 170 case AutoscrollForSelection:
171 case NoAutoscroll: 171 case NoAutoscroll:
172 break; 172 break;
173 } 173 }
174 if (m_autoscrollType != NoAutoscroll) 174 if (m_autoscrollType != NoAutoscroll)
175 m_page.chrome().scheduleAnimation(); 175 startAutoscroll();
176 } 176 }
177 177
178 void AutoscrollController::startAutoscroll() 178 void AutoscrollController::startAutoscroll()
179 { 179 {
180 m_page.chrome().scheduleAnimation(); 180 m_page.animator().scheduleVisualUpdate();
181 } 181 }
182 182
183 } // namespace blink 183 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698