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

Side by Side Diff: dart/samples/ui_lib/layout/GridLayout.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, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/samples/ui_lib/base/base.dart ('k') | dart/samples/ui_lib/layout/GridLayoutParams.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 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
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 }
OLDNEW
« no previous file with comments | « dart/samples/ui_lib/base/base.dart ('k') | dart/samples/ui_lib/layout/GridLayoutParams.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698