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