OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |