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

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

Issue 1160013004: Implement RenderImage and Image for Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase and merge conflicts 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
Index: sky/sdk/lib/framework/rendering/node.dart
diff --git a/sky/sdk/lib/framework/rendering/node.dart b/sky/sdk/lib/framework/rendering/node.dart
index 45ed33921cd079e73fd46d4e78433a78432923a4..cfeec1599ddcfe35ef32316a6f407fd5990a3e7d 100644
--- a/sky/sdk/lib/framework/rendering/node.dart
+++ b/sky/sdk/lib/framework/rendering/node.dart
@@ -229,6 +229,14 @@ abstract class RenderNodeWithChildMixin<ChildType extends RenderNode> {
adoptChild(_child);
markNeedsLayout();
}
+ void attachChildren() {
+ if (_child != null)
+ _child.attach();
+ }
+ void detachChildren() {
+ if (_child != null)
+ _child.detach();
+ }
}
« sky/sdk/lib/framework/rendering/box.dart ('K') | « sky/sdk/lib/framework/rendering/box.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698