OLD | NEW |
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 'dart:math' as math; | 5 import 'dart:math' as math; |
6 import 'dart:sky' as sky; | 6 import 'dart:sky' as sky; |
7 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path; | 7 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path; |
8 | 8 |
9 import '../node.dart'; | 9 import '../app/scheduler.dart' as scheduler; |
10 import '../scheduler.dart' as scheduler; | 10 import '../framework/node.dart'; |
11 | 11 |
12 export 'dart:sky' show Point, Size, Rect, Color, Paint, Path; | 12 export 'dart:sky' show Point, Size, Rect, Color, Paint, Path; |
13 | 13 |
14 class ParentData { | 14 class ParentData { |
15 void detach() { | 15 void detach() { |
16 detachSiblings(); | 16 detachSiblings(); |
17 } | 17 } |
18 void detachSiblings() { } // workaround for lack of inter-class mixins in Dart | 18 void detachSiblings() { } // workaround for lack of inter-class mixins in Dart |
19 void merge(ParentData other) { | 19 void merge(ParentData other) { |
20 // override this in subclasses to merge in data from other into this | 20 // override this in subclasses to merge in data from other into this |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 int count = 1; | 457 int count = 1; |
458 ChildType child = _firstChild; | 458 ChildType child = _firstChild; |
459 while (child != null) { | 459 while (child != null) { |
460 result += '${prefix}child ${count}: ${child.toString(prefix)}'; | 460 result += '${prefix}child ${count}: ${child.toString(prefix)}'; |
461 count += 1; | 461 count += 1; |
462 child = child.parentData.nextSibling; | 462 child = child.parentData.nextSibling; |
463 } | 463 } |
464 return result; | 464 return result; |
465 } | 465 } |
466 } | 466 } |
OLD | NEW |