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

Unified Diff: sky/sdk/lib/framework/rendering/box.dart

Issue 1166183002: Add Point.origin for new Point(0.0, 0.0) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/lib/framework/components2/scaffold.dart ('k') | sky/sdk/lib/framework/rendering/stack.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/box.dart
diff --git a/sky/sdk/lib/framework/rendering/box.dart b/sky/sdk/lib/framework/rendering/box.dart
index 02a1893dfe5d80bf1269d4ca660626c8662bee8a..f40d2bc6e0b123f5ee766fdfd3d4a96d2e53be9d 100644
--- a/sky/sdk/lib/framework/rendering/box.dart
+++ b/sky/sdk/lib/framework/rendering/box.dart
@@ -116,7 +116,7 @@ class BoxConstraints {
}
class BoxParentData extends ParentData {
- Point position = new Point(0.0, 0.0);
+ Point position = Point.origin;
String toString() => 'position=$position';
}
@@ -809,7 +809,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
void paint(RenderObjectDisplayList canvas) {
if (child != null)
- canvas.paintChild(child, new Point(0.0, 0.0));
+ canvas.paintChild(child, Point.origin);
}
void paintFrame() {
« no previous file with comments | « sky/sdk/lib/framework/components2/scaffold.dart ('k') | sky/sdk/lib/framework/rendering/stack.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698