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

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

Issue 1209233002: Let's hide double.INFINITY a bit more, by providing cleaner APIs for the cases where we're currentl… (Closed) Base URL: https://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/home.dart ('k') | sky/sdk/lib/rendering/box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/rendering/block.dart
diff --git a/sky/sdk/lib/rendering/block.dart b/sky/sdk/lib/rendering/block.dart
index 3ab31711dfecd20e391903a295207dca87d4cdf8..fb5b7c6e5a083b34bf02543bd47634ca7a02f9a5 100644
--- a/sky/sdk/lib/rendering/block.dart
+++ b/sky/sdk/lib/rendering/block.dart
@@ -96,8 +96,7 @@ class RenderBlock extends RenderBox with ContainerRenderObjectMixin<RenderBox, B
child = child.parentData.nextSibling;
}
size = new Size(width, constraints.constrainHeight(y));
- assert(size.width < double.INFINITY);
- assert(size.height < double.INFINITY);
+ assert(!size.isInfinite);
}
void hitTestChildren(HitTestResult result, { Point position }) {
« no previous file with comments | « sky/home.dart ('k') | sky/sdk/lib/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698