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

Side by Side Diff: sky/sdk/lib/framework/rendering/object.dart

Issue 1177243002: Refactor fn2.dart, since it breached our 1000-line threshold. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « sky/sdk/lib/framework/rendering/box.dart ('k') | sky/sdk/lib/framework/scheduler.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import '../node.dart'; 5 import '../node.dart';
6 import '../scheduler.dart' as scheduler; 6 import '../scheduler.dart' as scheduler;
7 import 'dart:math' as math;
8 import 'dart:sky' as sky; 7 import 'dart:sky' as sky;
9 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path; 8 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path;
10 export 'dart:sky' show Point, Size, Rect, Color, Paint, Path; 9 export 'dart:sky' show Point, Size, Rect, Color, Paint, Path;
11 10
12 class ParentData { 11 class ParentData {
13 void detach() { 12 void detach() {
14 detachSiblings(); 13 detachSiblings();
15 } 14 }
16 void detachSiblings() { } // workaround for lack of inter-class mixins in Dart 15 void detachSiblings() { } // workaround for lack of inter-class mixins in Dart
17 void merge(ParentData other) { 16 void merge(ParentData other) {
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 int count = 1; 447 int count = 1;
449 ChildType child = _firstChild; 448 ChildType child = _firstChild;
450 while (child != null) { 449 while (child != null) {
451 result += '${prefix}child ${count}: ${child.toString(prefix)}'; 450 result += '${prefix}child ${count}: ${child.toString(prefix)}';
452 count += 1; 451 count += 1;
453 child = child.parentData.nextSibling; 452 child = child.parentData.nextSibling;
454 } 453 }
455 return result; 454 return result;
456 } 455 }
457 } 456 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/rendering/box.dart ('k') | sky/sdk/lib/framework/scheduler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698