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

Unified Diff: sky/tests/resources/display_list.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/tests/raw/box_layout.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/resources/display_list.dart
diff --git a/sky/tests/resources/display_list.dart b/sky/tests/resources/display_list.dart
index 84d6cc97ad8eb50a0f4fc2570f7149bac4f7bd0a..84e1c09afb9dd596cb785e2b08a7f62cd6341f29 100644
--- a/sky/tests/resources/display_list.dart
+++ b/sky/tests/resources/display_list.dart
@@ -1,11 +1,11 @@
-import 'package:sky/framework/rendering/node.dart';
+import 'package:sky/framework/rendering/object.dart';
import 'package:sky/framework/rendering/box.dart';
import 'dart:sky' as sky;
typedef void Logger (String s);
-class TestDisplayList extends RenderNodeDisplayList {
+class TestDisplayList extends RenderObjectDisplayList {
TestDisplayList(double width, double height, this.logger, { this.indent: '' }) :
this.width = width,
this.height = height,
@@ -86,7 +86,7 @@ class TestDisplayList extends RenderNodeDisplayList {
log("drawPath(Path, ${explainPaint(paint)})");
}
- void paintChild(RenderNode child, sky.Point position) {
+ void paintChild(RenderObject child, sky.Point position) {
log("paintChild at ${position.x},${position.y}");
child.paint(new TestDisplayList(width, height, logger, indent: "$indent |"));
}
@@ -109,13 +109,13 @@ class TestView extends RenderView {
}
void paintFrame() {
- RenderNode.debugDoingPaint = true;
+ RenderObject.debugDoingPaint = true;
frame += 1;
log("PAINT FOR FRAME #${frame} ----------------------------------------------");
var canvas = new TestDisplayList(sky.view.width, sky.view.height, log, indent: "${frame} |");
paint(canvas);
log("------------------------------------------------------------------------");
- RenderNode.debugDoingPaint = false;
+ RenderObject.debugDoingPaint = false;
}
}
@@ -137,7 +137,7 @@ class TestApp {
_renderView.child = value;
}
void _beginFrame(double timeStamp) {
- RenderNode.flushLayout();
+ RenderObject.flushLayout();
_renderView.paintFrame();
print(_renderView.lastPaint); // TODO(ianh): figure out how to make this fit the unit testing framework better
}
« no previous file with comments | « sky/tests/raw/box_layout.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698