| 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 '../app/scheduler.dart' as scheduler; | 9 import '../app/scheduler.dart' as scheduler; |
| 10 import '../framework/node.dart'; | 10 import '../framework/node.dart'; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 } | 243 } |
| 244 header += ' relayoutSubtreeRoot=up$count'; | 244 header += ' relayoutSubtreeRoot=up$count'; |
| 245 } | 245 } |
| 246 if (_needsLayout) | 246 if (_needsLayout) |
| 247 header += ' NEEDS-LAYOUT'; | 247 header += ' NEEDS-LAYOUT'; |
| 248 if (!attached) | 248 if (!attached) |
| 249 header += ' DETACHED'; | 249 header += ' DETACHED'; |
| 250 prefix += ' '; | 250 prefix += ' '; |
| 251 return '${header}\n${debugDescribeSettings(prefix)}${debugDescribeChildren(p
refix)}'; | 251 return '${header}\n${debugDescribeSettings(prefix)}${debugDescribeChildren(p
refix)}'; |
| 252 } | 252 } |
| 253 String debugDescribeSettings(String prefix) => '${prefix}parentData: ${parentD
ata}\n'; | 253 String debugDescribeSettings(String prefix) => '${prefix}parentData: ${parentD
ata}\n${prefix}constraints: ${constraints}\n'; |
| 254 String debugDescribeChildren(String prefix) => ''; | 254 String debugDescribeChildren(String prefix) => ''; |
| 255 | 255 |
| 256 } | 256 } |
| 257 | 257 |
| 258 class HitTestEntry { | 258 class HitTestEntry { |
| 259 const HitTestEntry(this.target); | 259 const HitTestEntry(this.target); |
| 260 | 260 |
| 261 final RenderObject target; | 261 final RenderObject target; |
| 262 } | 262 } |
| 263 | 263 |
| (...skipping 193 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 |