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

Unified Diff: samples-dev/swarm/swarm_ui_lib/layout/ViewLayout.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
Index: samples-dev/swarm/swarm_ui_lib/layout/ViewLayout.dart
diff --git a/samples-dev/swarm/swarm_ui_lib/layout/ViewLayout.dart b/samples-dev/swarm/swarm_ui_lib/layout/ViewLayout.dart
index a6eadb7446db853385d061a237788f94ed68e80d..5decaec975b4649db366f68f91e80df993b98d37 100644
--- a/samples-dev/swarm/swarm_ui_lib/layout/ViewLayout.dart
+++ b/samples-dev/swarm/swarm_ui_lib/layout/ViewLayout.dart
@@ -21,7 +21,6 @@ abstract class Positionable {
void doLayout();
}
-
/**
* Caches the layout parameters that were specified in CSS during a layout
* computation. These values are immutable during a layout.
@@ -128,8 +127,7 @@ class ViewLayout {
int get borderHeight => borderTopWidth + borderBottomWidth;
/** Implements the custom layout computation. */
- void measureLayout(Future<Size> size, Completer<bool> changed) {
- }
+ void measureLayout(Future<Size> size, Completer<bool> changed) {}
/**
* Positions the view within its parent container.
@@ -182,7 +180,7 @@ class ViewLayout {
}
int measureContent(ViewLayout parent, Dimension dimension,
- [ContentSizeMode mode = null]) {
+ [ContentSizeMode mode = null]) {
if (dimension == Dimension.WIDTH) {
return measureWidth(parent, mode);
} else if (dimension == Dimension.HEIGHT) {
@@ -193,11 +191,9 @@ class ViewLayout {
int measureWidth(ViewLayout parent, ContentSizeMode mode) {
final style = layoutParams.style;
if (mode == ContentSizeMode.MIN) {
- return _styleToPixels(
- style.minWidth, currentWidth, parent.currentWidth);
+ return _styleToPixels(style.minWidth, currentWidth, parent.currentWidth);
} else if (mode == ContentSizeMode.MAX) {
- return _styleToPixels(
- style.maxWidth, currentWidth, parent.currentWidth);
+ return _styleToPixels(style.maxWidth, currentWidth, parent.currentWidth);
}
}
« no previous file with comments | « samples-dev/swarm/swarm_ui_lib/layout/SizingFunctions.dart ('k') | samples-dev/swarm/swarm_ui_lib/observable/ChangeEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698