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

Unified Diff: sky/sdk/lib/framework/rendering/box.dart

Issue 1183503003: Add an example of an app that manipulates both a RenderObject tree and has some fn logic in it. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/widgets/spinning_mixed.dart ('k') | sky/sdk/lib/framework/widgets/ui_node.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/box.dart
diff --git a/sky/sdk/lib/framework/rendering/box.dart b/sky/sdk/lib/framework/rendering/box.dart
index f6bf0da0977043b5f84b285908bdd0ee37d90250..993916962b25a2cf4a376f04e2836b8877d7c223 100644
--- a/sky/sdk/lib/framework/rendering/box.dart
+++ b/sky/sdk/lib/framework/rendering/box.dart
@@ -248,8 +248,9 @@ abstract class RenderBox extends RenderObject {
String debugDescribeSettings(String prefix) => '${super.debugDescribeSettings(prefix)}${prefix}size: ${size}\n';
}
-abstract class RenderProxyBox extends RenderBox with RenderObjectWithChildMixin<RenderBox> {
- RenderProxyBox(RenderBox child) {
+class RenderProxyBox extends RenderBox with RenderObjectWithChildMixin<RenderBox> {
+
+ RenderProxyBox([RenderBox child = null]) {
this.child = child;
}
@@ -297,6 +298,7 @@ abstract class RenderProxyBox extends RenderBox with RenderObjectWithChildMixin<
if (child != null)
child.paint(canvas);
}
+
}
class RenderSizedBox extends RenderProxyBox {
« no previous file with comments | « sky/examples/widgets/spinning_mixed.dart ('k') | sky/sdk/lib/framework/widgets/ui_node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698