From 1f07f3355db1abfdd394933d3b30cc42b3d42c58 Mon Sep 17 00:00:00 2001 From: Hixie Date: Fri, 12 Jun 2015 17:09:57 -0700 Subject: [PATCH] Verify that callers correctly set parentUsesSize if they use the child's size (and fix a few cases that didn't). This introduces a bunch of code that should only run in debug builds, but we don't have #ifdefs yet. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1182933003. --- examples/widgets/spinning_mixed.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/widgets/spinning_mixed.dart b/examples/widgets/spinning_mixed.dart index 324d042972..e75b36c915 100644 --- a/examples/widgets/spinning_mixed.dart +++ b/examples/widgets/spinning_mixed.dart @@ -71,12 +71,8 @@ void rotate(double timeStamp) { transformBox.translate(transformBox.size.width / 2.0, transformBox.size.height / 2.0); transformBox.rotateZ(delta); transformBox.translate(-transformBox.size.width / 2.0, -transformBox.size.height / 2.0); - - // tester.checkFrame(); } -final bool debugDisplayList = false; // set this to true to use the test rendering logic - void main() { // Because we're going to use UINodes, we want to initialise its // AppView, not use the default one. We don't really need to do @@ -84,7 +80,7 @@ void main() { // it's good practice in case we happen to not have a // RenderObjectToUINodeAdapter in our tree at startup, or in case we // want a renderViewOverride. - UINodeAppView.initUINodeAppView(renderViewOverride: debugDisplayList ? tester : null); + UINodeAppView.initUINodeAppView(); RenderFlex flexRoot = new RenderFlex(direction: FlexDirection.vertical);