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

Unified Diff: client/touch/FxUtil.dart

Issue 8363040: Implement measurement using futures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove duplicated imports from html.dart 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 | « client/tests/client/samples/total/total_tests.dart ('k') | client/touch/Geometry.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/touch/FxUtil.dart
diff --git a/client/touch/FxUtil.dart b/client/touch/FxUtil.dart
index 1b5e9bc1263106b99f8b94633e8113feea67c984..bd227cd4979553652e6eb002bba38b8fe62fd3aa 100644
--- a/client/touch/FxUtil.dart
+++ b/client/touch/FxUtil.dart
@@ -18,17 +18,6 @@ class FxUtil {
/** The scale transform function. */
static final SCALE = 'scale';
- /**
- * Apply a -webkit-transition on an element using the [duration] of this
- * animation in ms.
- */
- static void setWebkitTransition(
- Element el, num duration,
- [String property = StyleUtil.TRANSFORM_STYLE,
- String timingFunction = TransitionTimingFunction.EASE_IN_OUT]) {
- el.style.transition = '${property} ${duration}ms ${timingFunction}';
- }
-
/** Stops and clears the transition on an element. */
static void clearWebkitTransition(Element el) {
el.style.transition = '';
@@ -107,35 +96,6 @@ class FxUtil {
}
}
-
-/**
- * Utilities for element styles.
- */
-class StyleUtil {
- // TODO(jacobr): Need a good way to set this to -moz, or -o names.
- /** Style name for transform. */
- static final TRANSFORM_STYLE = '-webkit-transform';
-
- /**
- * Retrieves a computed style value of a node.
- *
- * Limitations:
- * - Does not report border styles correctly in Webkit.
- */
- static CSSStyleDeclaration getComputedStyle(Element element) {
- // TODO(jmesserly): last param should be null, see b/5045788
- return window.getComputedStyle(element, '');
- }
-
- /** Retrieves the current transform of an element. */
- static CSSMatrix getCurrentTransformMatrix(Element element) {
- // TODO(jacobr): when poossible switch back to
- // return new CSSMatrix(transform);
- return new CSSMatrix(
- getComputedStyle(element).transform);
- }
-}
-
class TransitionTimingFunction {
static final EASE_IN = 'ease-in';
static final EASE_OUT = 'ease-out';
« no previous file with comments | « client/tests/client/samples/total/total_tests.dart ('k') | client/touch/Geometry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698