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

Unified Diff: sky/sdk/lib/widgets/basic.dart

Issue 1206373002: Implement ClipRRect (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
« sky/sdk/lib/rendering/box.dart ('K') | « sky/sdk/lib/rendering/box.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/widgets/basic.dart
diff --git a/sky/sdk/lib/widgets/basic.dart b/sky/sdk/lib/widgets/basic.dart
index 511bd4b81ac545e47eb695fc54ba0ce47f9dd6c4..d3a190043ef2c5400e2828c980d191ae813dc0bd 100644
--- a/sky/sdk/lib/widgets/basic.dart
+++ b/sky/sdk/lib/widgets/basic.dart
@@ -106,6 +106,16 @@ class ClipRect extends OneChildRenderObjectWrapper {
RenderClipRect createNode() => new RenderClipRect();
}
+class ClipRRect extends OneChildRenderObjectWrapper {
+ final double xRad;
+ final double yRad;
abarth-chromium 2015/06/25 17:11:21 xRadius and yRadius
+ ClipRRect({ String key, Widget child, this.xRad, this.yRad })
+ : super(key: key, child: child);
+
+ RenderClipRRect get root => super.root;
+ RenderClipRRect createNode() => new RenderClipRRect(xRad: xRad, yRad: yRad);
abarth-chromium 2015/06/25 17:11:21 You're missing a syncRenderObject function. Looks
jackson 2015/06/25 17:21:35 ClipRect and ClipOval are missing them, but Render
+}
+
class ClipOval extends OneChildRenderObjectWrapper {
ClipOval({ String key, Widget child })
: super(key: key, child: child);
« sky/sdk/lib/rendering/box.dart ('K') | « sky/sdk/lib/rendering/box.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698