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
This commit is contained in:
Hixie 2015-06-10 15:00:34 -07:00
parent 492f5919c7
commit 58efa250e5

View file

@ -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);