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

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

Issue 1150253005: Replace BoxDimensions with sky.Size (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/sector-layout.dart ('k') | sky/sdk/lib/framework/layout2.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 962c9efd6ac899427f752314e84b801690b8c110..d03cdf9c2e6e444b1d348a79582a0925a9a2a315 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -950,10 +950,8 @@ class RenderSolidColor extends RenderDecoratedBox {
: backgroundColor = backgroundColor,
super(new BoxDecoration(backgroundColor: backgroundColor));
- BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) {
- return new BoxDimensions.withConstraints(constraints,
- width: desiredSize.width,
- height: desiredSize.height);
+ sky.Size getIntrinsicDimensions(BoxConstraints constraints) {
+ return constraints.constrain(desiredSize);
}
void performLayout() {
« no previous file with comments | « sky/examples/raw/sector-layout.dart ('k') | sky/sdk/lib/framework/layout2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698