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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1160013004: Implement RenderImage and Image for Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase again Created 5 years, 7 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/examples/raw/render_paragraph.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index f705a7d5506c2119c42e02aa40612991247dd09d..fe1bf71df316c279cc16a66df3d074a5e37cfd65 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -638,23 +638,22 @@ class FlexExpandingChild extends ParentDataNode {
}
class Image extends RenderNodeWrapper {
- RenderCSSImage root;
- RenderCSSImage createNode() => new RenderCSSImage(this, this.src, this.width, this.height);
+ RenderImage root;
+ RenderImage createNode() => new RenderImage(this.src, this.size);
final String src;
- final int width;
- final int height;
+ final sky.Size size;
Image({
Object key,
- this.width,
- this.height,
- this.src
+ this.src,
+ this.size
}) : super(key: key);
void syncRenderNode(UINode old) {
super.syncRenderNode(old);
- root.configure(this.src, this.width, this.height);
+ root.src = src;
+ root.requestedSize = size;
}
}
« no previous file with comments | « sky/examples/raw/render_paragraph.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698