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

Unified Diff: sky/examples/raw/sector_layout.dart

Issue 1164303002: Introduce sky.Sky.zero (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/engine/core/painting/Size.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/sector_layout.dart
diff --git a/sky/examples/raw/sector_layout.dart b/sky/examples/raw/sector_layout.dart
index 7b5d6dd391a216a0b4a040a8a5b45bf0cfa22eb5..b02dcadc8353ba0e020a43df7876d521ccf482fb 100644
--- a/sky/examples/raw/sector_layout.dart
+++ b/sky/examples/raw/sector_layout.dart
@@ -401,7 +401,7 @@ class RenderBoxToRenderSectorAdapter extends RenderBox {
sky.Size getIntrinsicDimensions(BoxConstraints constraints) {
if (child == null)
- return constraints.constrain(new sky.Size(0.0, 0.0));
+ return constraints.constrain(sky.Size.zero);
Hixie 2015/06/08 17:01:53 You should be able to remove the sky. part now.
assert(child is RenderSector);
assert(child.parentData is SectorParentData);
assert(!constraints.isInfinite);
@@ -413,7 +413,7 @@ class RenderBoxToRenderSectorAdapter extends RenderBox {
void performLayout() {
if (child == null) {
- size = constraints.constrain(new sky.Size(0.0, 0.0));
+ size = constraints.constrain(sky.Size.zero);
} else {
assert(child is RenderSector);
assert(!constraints.isInfinite);
« no previous file with comments | « sky/engine/core/painting/Size.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698