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

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

Issue 1161983004: Refactor layout/relayout into a single method. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « sky/examples/raw/sector-layout.dart ('k') | sky/sdk/lib/framework/app.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/simple_render_tree.dart
diff --git a/sky/examples/raw/simple_render_tree.dart b/sky/examples/raw/simple_render_tree.dart
index 569c86ac11994268f40dd8a7d0b340aedd170a78..f2db8ee3dfd263b09c9a35bf6f406940a9f6d167 100644
--- a/sky/examples/raw/simple_render_tree.dart
+++ b/sky/examples/raw/simple_render_tree.dart
@@ -22,10 +22,9 @@ class RenderSolidColor extends RenderDecoratedBox {
width: desiredWidth);
}
- void layout(BoxConstraints constraints, { RenderNode relayoutSubtreeRoot }) {
+ void performLayout() {
width = constraints.constrainWidth(desiredWidth);
height = constraints.constrainHeight(desiredHeight);
- layoutDone();
}
void handlePointer(PointerEvent event) {
« no previous file with comments | « sky/examples/raw/sector-layout.dart ('k') | sky/sdk/lib/framework/app.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698