| 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, Offset, Size, Rect, Color, Paint, Path; | 7 import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path; |
| 8 | 8 |
| 9 import '../base/debug.dart'; | 9 import 'package:sky/base/debug.dart'; |
| 10 import '../base/hit_test.dart'; | 10 import 'package:sky/base/hit_test.dart'; |
| 11 import '../base/node.dart'; | 11 import 'package:sky/base/node.dart'; |
| 12 import '../base/scheduler.dart' as scheduler; | 12 import 'package:sky/base/scheduler.dart' as scheduler; |
| 13 | 13 |
| 14 export 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path; | 14 export 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path; |
| 15 export '../base/hit_test.dart' show HitTestTarget, HitTestEntry, HitTestResult; | 15 export 'package:sky/base/hit_test.dart' show HitTestTarget, HitTestEntry, HitTes
tResult; |
| 16 | |
| 17 | 16 |
| 18 class ParentData { | 17 class ParentData { |
| 19 void detach() { | 18 void detach() { |
| 20 detachSiblings(); | 19 detachSiblings(); |
| 21 } | 20 } |
| 22 void detachSiblings() { } // workaround for lack of inter-class mixins in Dart | 21 void detachSiblings() { } // workaround for lack of inter-class mixins in Dart |
| 23 void merge(ParentData other) { | 22 void merge(ParentData other) { |
| 24 // override this in subclasses to merge in data from other into this | 23 // override this in subclasses to merge in data from other into this |
| 25 assert(other.runtimeType == this.runtimeType); | 24 assert(other.runtimeType == this.runtimeType); |
| 26 } | 25 } |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 int count = 1; | 699 int count = 1; |
| 701 ChildType child = _firstChild; | 700 ChildType child = _firstChild; |
| 702 while (child != null) { | 701 while (child != null) { |
| 703 result += '${prefix}child ${count}: ${child.toString(prefix)}'; | 702 result += '${prefix}child ${count}: ${child.toString(prefix)}'; |
| 704 count += 1; | 703 count += 1; |
| 705 child = child.parentData.nextSibling; | 704 child = child.parentData.nextSibling; |
| 706 } | 705 } |
| 707 return result; | 706 return result; |
| 708 } | 707 } |
| 709 } | 708 } |
| OLD | NEW |