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

Unified Diff: sky/sdk/lib/rendering/object.dart

Issue 1214833004: Split Size into Size and Offset. (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/box.dart ('k') | sky/sdk/lib/rendering/sky_binding.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/rendering/object.dart
diff --git a/sky/sdk/lib/rendering/object.dart b/sky/sdk/lib/rendering/object.dart
index 39981e0a6b69d31f7f69468314774f54d56de17c..5811ee2c38ecece6dd35631502581e5f2e4ca74e 100644
--- a/sky/sdk/lib/rendering/object.dart
+++ b/sky/sdk/lib/rendering/object.dart
@@ -4,13 +4,13 @@
import 'dart:math' as math;
import 'dart:sky' as sky;
-import 'dart:sky' show Point, Size, Rect, Color, Paint, Path;
+import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path;
import '../base/hit_test.dart';
import '../base/node.dart';
import '../base/scheduler.dart' as scheduler;
-export 'dart:sky' show Point, Size, Rect, Color, Paint, Path;
+export 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path;
export '../base/hit_test.dart' show HitTestTarget, HitTestEntry, HitTestResult;
@@ -27,7 +27,7 @@ class ParentData {
}
class RenderCanvas extends sky.Canvas {
- RenderCanvas(sky.PictureRecorder recorder, double width, double height) : super(recorder, width, height);
+ RenderCanvas(sky.PictureRecorder recorder, Size bounds) : super(recorder, bounds);
void paintChild(RenderObject child, Point position) {
translate(position.x, position.y);
« no previous file with comments | « sky/sdk/lib/rendering/box.dart ('k') | sky/sdk/lib/rendering/sky_binding.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698