Commit 58efa250 authored by Hixie's avatar Hixie

Replace some 'as' operators with equivalent code that doesn't do any checks in production mode.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1181453003
parent 492f5919
...@@ -71,7 +71,7 @@ abstract class RenderSector extends RenderObject { ...@@ -71,7 +71,7 @@ abstract class RenderSector extends RenderObject {
return new SectorDimensions.withConstraints(constraints); return new SectorDimensions.withConstraints(constraints);
} }
SectorConstraints get constraints => super.constraints as SectorConstraints; SectorConstraints get constraints { SectorConstraints result = super.constraints; return result; }
void performResize() { void performResize() {
// default behaviour for subclasses that have sizedByParent = true // default behaviour for subclasses that have sizedByParent = true
deltaRadius = constraints.constrainDeltaRadius(0.0); deltaRadius = constraints.constrainDeltaRadius(0.0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment