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

Unified Diff: client/base/AnimationScheduler.dart

Issue 8360025: Move the individual property definitions from client/base/Css to CSSStyleDeclaration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 9 years, 2 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
« no previous file with comments | « no previous file | client/base/Css.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/base/AnimationScheduler.dart
diff --git a/client/base/AnimationScheduler.dart b/client/base/AnimationScheduler.dart
index f10f938ec3137b8e28db29db592908993e99be8b..73d7381ae1b0c5ba428e45034e76478ab0539cd2 100644
--- a/client/base/AnimationScheduler.dart
+++ b/client/base/AnimationScheduler.dart
@@ -41,7 +41,7 @@ class AnimationScheduler {
List<CallbackData> _callbacks;
int _intervalId;
bool _isMobileSafari = false;
- Css _safariHackCss;
+ CSSStyleDeclaration _safariHackStyle;
int _frameCount = 0;
bool _webkitAnimationFrameMaybeAvailable = true;
@@ -52,8 +52,8 @@ class AnimationScheduler {
// sometimes don't render on iOS without forcing a layout.
final element = new Element.tag('div');
document.body.nodes.add(element);
- _safariHackCss = new Css(element.style);
- _safariHackCss.position = 'absolute';
+ _safariHackStyle = element.style;
+ _safariHackStyle.position = 'absolute';
}
}
@@ -160,7 +160,7 @@ class AnimationScheduler {
// render if only webkit transforms were modified.
// TODO(jacobr): find a cleaner workaround.
int offset = _frameCount % 2;
- _safariHackCss.left = '${offset}px';
+ _safariHackStyle.left = '${offset}px';
}
}
}
« no previous file with comments | « no previous file | client/base/Css.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698