| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |