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

Unified Diff: samples-dev/swarm/swarm_ui_lib/base/Size.dart

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: Created 3 years, 8 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 | « samples-dev/swarm/swarm_ui_lib/base/Env.dart ('k') | samples-dev/swarm/swarm_ui_lib/base/base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples-dev/swarm/swarm_ui_lib/base/Size.dart
diff --git a/samples-dev/swarm/swarm_ui_lib/base/Size.dart b/samples-dev/swarm/swarm_ui_lib/base/Size.dart
index 559392902ccf49279cf3a02a2a273d87335790b8..920b4a30b7ef512c892412a8f57d32ca6d3a2ebc 100644
--- a/samples-dev/swarm/swarm_ui_lib/base/Size.dart
+++ b/samples-dev/swarm/swarm_ui_lib/base/Size.dart
@@ -11,8 +11,7 @@ class Size {
num width;
num height;
- Size(num this.width, num this.height) {
- }
+ Size(num this.width, num this.height) {}
bool operator ==(Size other) {
return other != null && width == other.width && height == other.height;
@@ -127,8 +126,9 @@ class Size {
* Returns this Size object, after optional scaling.
*/
Size scaleToFit(Size target) {
- num s = aspectRatio() > target.aspectRatio() ?
- target.width / width : target.height / height;
+ num s = aspectRatio() > target.aspectRatio()
+ ? target.width / width
+ : target.height / height;
return scale(s);
}
« no previous file with comments | « samples-dev/swarm/swarm_ui_lib/base/Env.dart ('k') | samples-dev/swarm/swarm_ui_lib/base/base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698