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

Unified Diff: sky/sdk/lib/rendering/auto_layout.dart

Issue 1231903003: Update cassowary dependency to 0.1.7 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/sdk/example/rendering/simple_autolayout.dart ('k') | sky/sdk/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/rendering/auto_layout.dart
diff --git a/sky/sdk/lib/rendering/auto_layout.dart b/sky/sdk/lib/rendering/auto_layout.dart
index 04b952d1b0fc5bd5f748bb0d862cda24d9894078..d5424ba7f4b4451ee1f1695c8d507a64cc2928f0 100644
--- a/sky/sdk/lib/rendering/auto_layout.dart
+++ b/sky/sdk/lib/rendering/auto_layout.dart
@@ -28,8 +28,8 @@ abstract class _AutoLayoutParamMixin {
al.Expression get width => _rightEdge - _leftEdge;
al.Expression get height => _bottomEdge - _topEdge;
- al.Expression get horizontalCenter => (_leftEdge + _rightEdge) / al.CM(2.0);
- al.Expression get verticalCenter => (_topEdge + _bottomEdge) / al.CM(2.0);
+ al.Expression get horizontalCenter => (_leftEdge + _rightEdge) / al.cm(2.0);
+ al.Expression get verticalCenter => (_topEdge + _bottomEdge) / al.cm(2.0);
void _setupLayoutParameters(dynamic context) {
_leftEdge = new al.Param.withContext(context);
@@ -104,7 +104,7 @@ class AutoLayoutParentData extends BoxParentData
List<al.Constraint> _constructImplicitConstraints() {
return [
// The left edge must be positive
- _leftEdge >= al.CM(0.0),
+ _leftEdge >= al.cm(0.0),
// Width must be positive
_rightEdge >= _leftEdge,
« no previous file with comments | « sky/sdk/example/rendering/simple_autolayout.dart ('k') | sky/sdk/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698