| 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 * Implements a grid-based layout system based on: | 6 * Implements a grid-based layout system based on: |
| 9 * [http://dev.w3.org/csswg/css3-grid-align/] | 7 * [http://dev.w3.org/csswg/css3-grid-align/] |
| 10 * | 8 * |
| 11 * This layout is designed to support animations and work on browsers that | 9 * This layout is designed to support animations and work on browsers that |
| 12 * don't support grid natively. As such, we implement it on top of absolute | 10 * don't support grid natively. As such, we implement it on top of absolute |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 } | 508 } |
| 511 return result; | 509 return result; |
| 512 } | 510 } |
| 513 | 511 |
| 514 int _getSpanCount(ViewLayout item) { | 512 int _getSpanCount(ViewLayout item) { |
| 515 GridLayoutParams childLayout = item.layoutParams; | 513 GridLayoutParams childLayout = item.layoutParams; |
| 516 return (_dimension == Dimension.WIDTH ? | 514 return (_dimension == Dimension.WIDTH ? |
| 517 childLayout.columnSpan : childLayout.rowSpan); | 515 childLayout.columnSpan : childLayout.rowSpan); |
| 518 } | 516 } |
| 519 } | 517 } |
| OLD | NEW |