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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1160013007: Expose _remove from fn2 (Closed) Base URL: git@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/framework/components2/scaffold.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index 540566963cde71d230207b2a5d2655d0a54d4a5a..7a9eada18aa2ab4fe82a3f31b158e0f728f6196d 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -51,7 +51,7 @@ abstract class UINode {
// 'slot' is the identifier that the parent RenderObjectWrapper uses to know
// where to put this descendant
- void _remove() {
+ void remove() {
_defunct = true;
root = null;
handleRemoved();
@@ -96,7 +96,7 @@ abstract class UINode {
void removeChild(UINode node) {
_traceSync(_SyncOperation.removal, node._key);
- node._remove();
+ node.remove();
}
// Returns the child which should be retained as the child of this node.
@@ -157,10 +157,10 @@ abstract class ContentNode extends UINode {
root = content.root;
}
- void _remove() {
+ void remove() {
if (content != null)
removeChild(content);
- super._remove();
+ super.remove();
}
}
@@ -317,10 +317,10 @@ abstract class RenderObjectWrapper extends UINode {
}
}
- void _remove() {
+ void remove() {
assert(root != null);
_nodeMap.remove(root);
- super._remove();
+ super.remove();
}
}
@@ -345,10 +345,10 @@ abstract class OneChildRenderObjectWrapper extends RenderObjectWrapper {
super.removeChild(node);
}
- void _remove() {
+ void remove() {
if (child != null)
removeChild(child);
- super._remove();
+ super.remove();
}
}
@@ -435,9 +435,9 @@ class SizeObserver extends OneChildRenderObjectWrapper {
root.callback = callback;
}
- void _remove() {
+ void remove() {
root.callback = null;
- super._remove();
+ super.remove();
}
}
@@ -456,9 +456,9 @@ class CustomPaint extends OneChildRenderObjectWrapper {
root.callback = callback;
}
- void _remove() {
+ void remove() {
root.callback = null;
- super._remove();
+ super.remove();
}
}
@@ -493,13 +493,13 @@ abstract class MultiChildRenderObjectWrapper extends RenderObjectWrapper {
super.removeChild(node);
}
- void _remove() {
+ void remove() {
assert(children != null);
for (var child in children) {
assert(child != null);
removeChild(child);
}
- super._remove();
+ super.remove();
}
bool _debugHasDuplicateIds() {
@@ -848,13 +848,13 @@ abstract class Component extends UINode {
// needed to get sizing info.
RenderObject getRoot() => root;
- void _remove() {
+ void remove() {
assert(_built != null);
assert(root != null);
removeChild(_built);
_built = null;
_enqueueDidUnmount(this);
- super._remove();
+ super.remove();
}
bool _willSync(UINode old) {
« no previous file with comments | « sky/sdk/lib/framework/components2/scaffold.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698