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

Unified Diff: sky/sdk/lib/widgets/tabs.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/sdk/lib/widgets/scaffold.dart ('k') | sky/tests/widgets/syncs1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/tabs.dart
diff --git a/sky/sdk/lib/widgets/tabs.dart b/sky/sdk/lib/widgets/tabs.dart
index 198e1b4818bd5f33b1e20e489da4a09d58208c3a..9d8af98fa98666f5fb7fbc5ccdc51cf15857e544 100644
--- a/sky/sdk/lib/widgets/tabs.dart
+++ b/sky/sdk/lib/widgets/tabs.dart
@@ -94,8 +94,7 @@ class RenderTabBar extends RenderBox with
assert(constraints is BoxConstraints);
size = constraints.constrain(new Size(constraints.maxWidth, _kTabBarHeight));
- assert(size.width < double.INFINITY);
- assert(size.height < double.INFINITY);
+ assert(!size.isInfinite);
int childCount = _childCount();
if (childCount == 0)
« no previous file with comments | « sky/sdk/lib/widgets/scaffold.dart ('k') | sky/tests/widgets/syncs1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698