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

Unified Diff: sky/sdk/lib/widgets/basic.dart

Issue 1187393002: Cleanup of SkyBinding, and resultant yak shaving. (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/sdk/lib/rendering/sky_binding.dart ('k') | sky/sdk/lib/widgets/menu_item.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/basic.dart
diff --git a/sky/sdk/lib/widgets/basic.dart b/sky/sdk/lib/widgets/basic.dart
index 4ca534acdb93340e4e3114653246eafcb014acbf..038fec516c3f39cb998fb6221e66ed9396ac4d7b 100644
--- a/sky/sdk/lib/widgets/basic.dart
+++ b/sky/sdk/lib/widgets/basic.dart
@@ -436,7 +436,9 @@ class WidgetToRenderBoxAdapter extends LeafRenderObjectWrapper {
}
void remove() {
- parent.detachChildRoot(this);
+ RenderObjectWrapper ancestor = findAncestor(RenderObjectWrapper);
+ assert(ancestor is RenderObjectWrapper);
+ ancestor.detachChildRoot(this);
super.remove();
}
« no previous file with comments | « sky/sdk/lib/rendering/sky_binding.dart ('k') | sky/sdk/lib/widgets/menu_item.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698