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

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

Issue 1181453003: Replace some 'as' operators with equivalent code that doesn't do any checks in production mode. (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 | « no previous file | sky/sdk/lib/framework/components2/ink_well.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 605009ac91780196efa864b6f6ea8de276f47e88..2b1d6a0c90af77ccd83b37c6f8a8a588c6d552e0 100644
--- a/sky/examples/raw/sector_layout.dart
+++ b/sky/examples/raw/sector_layout.dart
@@ -71,7 +71,7 @@ abstract class RenderSector extends RenderObject {
return new SectorDimensions.withConstraints(constraints);
}
- SectorConstraints get constraints => super.constraints as SectorConstraints;
+ SectorConstraints get constraints { SectorConstraints result = super.constraints; return result; }
void performResize() {
// default behaviour for subclasses that have sizedByParent = true
deltaRadius = constraints.constrainDeltaRadius(0.0);
« no previous file with comments | « no previous file | sky/sdk/lib/framework/components2/ink_well.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698