OLD | NEW |
1 part of base; | |
2 | |
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
6 | 4 |
7 typedef void AnimationCallback(num currentTime); | 5 typedef void AnimationCallback(num currentTime); |
8 | 6 |
9 class CallbackData { | 7 class CallbackData { |
10 final AnimationCallback callback; | 8 final AnimationCallback callback; |
11 final num minTime; | 9 final num minTime; |
12 int id; | 10 int id; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 _frameCount++; | 157 _frameCount++; |
160 if (_isMobileSafari) { | 158 if (_isMobileSafari) { |
161 // Hack to work around an iOS bug where sometimes animations do not | 159 // Hack to work around an iOS bug where sometimes animations do not |
162 // render if only webkit transforms were modified. | 160 // render if only webkit transforms were modified. |
163 // TODO(jacobr): find a cleaner workaround. | 161 // TODO(jacobr): find a cleaner workaround. |
164 int offset = _frameCount % 2; | 162 int offset = _frameCount % 2; |
165 _safariHackStyle.left = '${offset}px'; | 163 _safariHackStyle.left = '${offset}px'; |
166 } | 164 } |
167 } | 165 } |
168 } | 166 } |
OLD | NEW |