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

Side by Side Diff: dart/samples/ui_lib/layout/GridLayoutParams.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of layout;
2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 /** 5 /**
8 * Caches the layout parameters that were specified in CSS during a layout 6 * Caches the layout parameters that were specified in CSS during a layout
9 * computation. These values are immutable during a layout. 7 * computation. These values are immutable during a layout.
10 */ 8 */
11 // TODO(jmesserly): I would like all fields to be final, but it's too painful 9 // TODO(jmesserly): I would like all fields to be final, but it's too painful
12 // to do this right now in Dart. If I create a factory constructor, then I need 10 // to do this right now in Dart. If I create a factory constructor, then I need
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 + ' so at least one row or one column must be defined'); 98 + ' so at least one row or one column must be defined');
101 } 99 }
102 100
103 if (row == null) row = 1; 101 if (row == null) row = 1;
104 if (column == null) column = 1; 102 if (column == null) column = 1;
105 } 103 }
106 104
107 assert(row > 0 && rowSpan > 0 && column > 0 && columnSpan > 0); 105 assert(row > 0 && rowSpan > 0 && column > 0 && columnSpan > 0);
108 } 106 }
109 } 107 }
OLDNEW
« no previous file with comments | « dart/samples/ui_lib/layout/GridLayout.dart ('k') | dart/samples/ui_lib/layout/GridLayoutParser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698