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

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

Issue 1209413004: Instead of applying a transform for every RenderObject, pass down an Offset for where to paint. (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
Index: sky/sdk/lib/rendering/block.dart
diff --git a/sky/sdk/lib/rendering/block.dart b/sky/sdk/lib/rendering/block.dart
index e1198688a53a4cdd7d9d79931406dc4edc8c8487..c93188b4c9652c9ae380c55e63301d2f1d4d6e48 100644
--- a/sky/sdk/lib/rendering/block.dart
+++ b/sky/sdk/lib/rendering/block.dart
@@ -102,8 +102,8 @@ class RenderBlock extends RenderBox with ContainerRenderObjectMixin<RenderBox, B
defaultHitTestChildren(result, position: position);
}
- void paint(RenderCanvas canvas) {
- defaultPaint(canvas);
+ void paint(RenderCanvas canvas, Offset offset) {
+ defaultPaint(canvas, offset);
}
}

Powered by Google App Engine
This is Rietveld 408576698