flutter/examples/rendering
Hixie aef18a90ab Add asserts to catch potential misuses of the rendering framework.
New asserts:
- verify that after layout, the size fits the constraints
- verify that after layout, the size isn't infinite
- verify that you don't set the size in performLayout() if you have
  sizedByParent set
- verify that nobody reads your size during layout except you, or your
  parent if they said parentUsesSize:true

Fixes some bugs found by those asserts:
- RenderBlock, RenderStack, and RenderScaffold were not always setting
  parentUsesSize correctly
- RenderScaffold was setting its slot entries to null rather than
  removing them when the slot went away, which led to null derefs in
  certain circumstances

Also, rename a local variable in RenderStack.performLayout() because
it was shadowing a variable on the object itself, which was really
confusing when I first tried to debug this function...

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1213473003.
2015-06-25 17:08:06 -07:00
..
baseline.dart Use the baseline information exposed by C++ to pipe baseline data through RenderBox. 2015-06-24 17:01:14 -07:00
borders.dart Rename AppView to SkyBinding. 2015-06-17 17:07:31 -07:00
interactive_flex.dart Fix data loading in the stocks app 2015-06-18 09:14:51 -07:00
justify_content.dart Rename AppView to SkyBinding. 2015-06-17 17:07:31 -07:00
render_paragraph.dart Rename AppView to SkyBinding. 2015-06-17 17:07:31 -07:00
sector_layout.dart Add asserts to catch potential misuses of the rendering framework. 2015-06-25 17:08:06 -07:00
shadowed_box.dart Rename editing2/ and theme2/ to editing/ and theme/. 2015-06-18 12:44:10 -07:00
spinning_flex.dart Cleanup of SkyBinding, and resultant yak shaving. 2015-06-17 19:54:11 -07:00
touch_demo.dart Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia counterparts. 2015-06-24 10:21:45 -07:00
transform.dart Rename AppView to SkyBinding. 2015-06-17 17:07:31 -07:00