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

Unified Diff: samples/swarm/swarm_ui_lib/touch/FxUtil.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « samples/swarm/swarm_ui_lib/touch/ClickBuster.dart ('k') | samples/swarm/swarm_ui_lib/touch/Geometry.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/touch/FxUtil.dart
diff --git a/samples/swarm/swarm_ui_lib/touch/FxUtil.dart b/samples/swarm/swarm_ui_lib/touch/FxUtil.dart
index 1f9824cac6e9f9561869df756f5ad55ab48e2fb3..33ebc95e46ea95f7b2111580d5ea1fc7077f33e2 100644
--- a/samples/swarm/swarm_ui_lib/touch/FxUtil.dart
+++ b/samples/swarm/swarm_ui_lib/touch/FxUtil.dart
@@ -44,15 +44,15 @@ class FxUtil {
// transformation matricies that will be set as CSS styles. We should
// consider using CSSMatrix although that may be overkill.
String transform = '${TRANSLATE_3D}(${x}px,${y}px,${z}px)';
- if (rotation !== null) {
+ if (rotation != null) {
transform = transform.concat(' ${ROTATE}(${rotation}deg)');
}
- if (scale !== null) {
+ if (scale != null) {
transform = transform.concat(' ${SCALE}(${scale})');
}
style.transform = transform;
- if (originX !== null || originY !== null) {
- assert(originX !== null && originY !== null);
+ if (originX != null || originY != null) {
+ assert(originX != null && originY != null);
style.transformOrigin = '${originX}px ${originY}px';
}
}
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/ClickBuster.dart ('k') | samples/swarm/swarm_ui_lib/touch/Geometry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698