| 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/hit_test.dart'; | 9 import '../base/hit_test.dart'; |
| 10 import '../base/node.dart'; | 10 import '../base/node.dart'; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 _needsLayout = true; | 116 _needsLayout = true; |
| 117 assert(_relayoutSubtreeRoot != null); | 117 assert(_relayoutSubtreeRoot != null); |
| 118 if (_relayoutSubtreeRoot != this) { | 118 if (_relayoutSubtreeRoot != this) { |
| 119 final parent = this.parent; // TODO(ianh): Remove this once the analyzer i
s cleverer | 119 final parent = this.parent; // TODO(ianh): Remove this once the analyzer i
s cleverer |
| 120 assert(parent is RenderObject); | 120 assert(parent is RenderObject); |
| 121 parent.markNeedsLayout(); | 121 parent.markNeedsLayout(); |
| 122 assert(parent == this.parent); // TODO(ianh): Remove this once the analyze
r is cleverer | 122 assert(parent == this.parent); // TODO(ianh): Remove this once the analyze
r is cleverer |
| 123 } else { | 123 } else { |
| 124 _nodesNeedingLayout.add(this); | 124 _nodesNeedingLayout.add(this); |
| 125 scheduler.ensureVisualUpdate(); |
| 125 } | 126 } |
| 126 } | 127 } |
| 127 void _cleanRelayoutSubtreeRoot() { | 128 void _cleanRelayoutSubtreeRoot() { |
| 128 if (_relayoutSubtreeRoot != this) { | 129 if (_relayoutSubtreeRoot != this) { |
| 129 _relayoutSubtreeRoot = null; | 130 _relayoutSubtreeRoot = null; |
| 130 _needsLayout = true; | 131 _needsLayout = true; |
| 131 _cleanRelayoutSubtreeRootChildren(); | 132 _cleanRelayoutSubtreeRootChildren(); |
| 132 } | 133 } |
| 133 } | 134 } |
| 134 void _cleanRelayoutSubtreeRootChildren() { } // workaround for lack of inter-c
lass mixins in Dart | 135 void _cleanRelayoutSubtreeRootChildren() { } // workaround for lack of inter-c
lass mixins in Dart |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 int count = 1; | 530 int count = 1; |
| 530 ChildType child = _firstChild; | 531 ChildType child = _firstChild; |
| 531 while (child != null) { | 532 while (child != null) { |
| 532 result += '${prefix}child ${count}: ${child.toString(prefix)}'; | 533 result += '${prefix}child ${count}: ${child.toString(prefix)}'; |
| 533 count += 1; | 534 count += 1; |
| 534 child = child.parentData.nextSibling; | 535 child = child.parentData.nextSibling; |
| 535 } | 536 } |
| 536 return result; | 537 return result; |
| 537 } | 538 } |
| 538 } | 539 } |
| OLD | NEW |