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

Unified Diff: sky/sdk/lib/framework/components2/scaffold.dart

Issue 1165013003: Rename RenderNode to RenderObject. (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/framework/app.dart ('k') | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/scaffold.dart
diff --git a/sky/sdk/lib/framework/components2/scaffold.dart b/sky/sdk/lib/framework/components2/scaffold.dart
index 2f600fcdcc91c1fcbda31613e8b590e307f6599f..3f5722a5d173c4f82a1ba25a3df18634cd020672 100644
--- a/sky/sdk/lib/framework/components2/scaffold.dart
+++ b/sky/sdk/lib/framework/components2/scaffold.dart
@@ -5,7 +5,7 @@
import '../fn2.dart';
import 'dart:sky' as sky;
import '../rendering/box.dart';
-import '../rendering/node.dart';
+import '../rendering/object.dart';
enum ScaffoldSlots {
@@ -107,7 +107,7 @@ class RenderScaffold extends RenderBox {
}
}
- void paint(RenderNodeDisplayList canvas) {
+ void paint(RenderObjectDisplayList canvas) {
for (ScaffoldSlots slot in [ScaffoldSlots.Body, ScaffoldSlots.StatusBar, ScaffoldSlots.Toolbar, ScaffoldSlots.FloatingActionButton, ScaffoldSlots.Drawer]) {
RenderBox box = _slots[slot];
if (box != null) {
@@ -132,7 +132,7 @@ class RenderScaffold extends RenderBox {
}
-class Scaffold extends RenderNodeWrapper {
+class Scaffold extends RenderObjectWrapper {
// static final Style _style = new Style('''
// ${typography.typeface};
@@ -158,7 +158,7 @@ class Scaffold extends RenderNodeWrapper {
RenderScaffold root;
RenderScaffold createNode() => new RenderScaffold();
- void insert(RenderNodeWrapper child, ScaffoldSlots slot) {
+ void insert(RenderObjectWrapper child, ScaffoldSlots slot) {
root[slot] = child != null ? child.root : null;
}
@@ -168,8 +168,8 @@ class Scaffold extends RenderNodeWrapper {
super.removeChild(node);
}
- void syncRenderNode(UINode old) {
- super.syncRenderNode(old);
+ void syncRenderObject(UINode old) {
+ super.syncRenderObject(old);
syncChild(toolbar, old is Scaffold ? old.toolbar : null, ScaffoldSlots.Toolbar);
syncChild(body, old is Scaffold ? old.body : null, ScaffoldSlots.Body);
syncChild(statusbar, old is Scaffold ? old.statusbar : null, ScaffoldSlots.StatusBar);
« no previous file with comments | « sky/sdk/lib/framework/app.dart ('k') | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698