| 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 | 7 |
| 8 import 'package:sky/base/debug.dart'; |
| 9 import 'package:sky/painting/box_painter.dart'; |
| 10 import 'package:sky/rendering/object.dart'; |
| 8 import 'package:vector_math/vector_math.dart'; | 11 import 'package:vector_math/vector_math.dart'; |
| 9 | 12 |
| 10 import '../base/debug.dart'; | 13 export 'package:sky/painting/box_painter.dart'; |
| 11 import '../painting/box_painter.dart'; | |
| 12 import 'object.dart'; | |
| 13 | |
| 14 export '../painting/box_painter.dart'; | |
| 15 | 14 |
| 16 // GENERIC BOX RENDERING | 15 // GENERIC BOX RENDERING |
| 17 // Anything that has a concept of x, y, width, height is going to derive from th
is | 16 // Anything that has a concept of x, y, width, height is going to derive from th
is |
| 18 | 17 |
| 19 // This class should only be used in debug builds | 18 // This class should only be used in debug builds |
| 20 class _DebugSize extends Size { | 19 class _DebugSize extends Size { |
| 21 _DebugSize(Size source, this._owner, this._canBeUsedByParent): super.copy(sour
ce); | 20 _DebugSize(Size source, this._owner, this._canBeUsedByParent): super.copy(sour
ce); |
| 22 final RenderBox _owner; | 21 final RenderBox _owner; |
| 23 final bool _canBeUsedByParent; | 22 final bool _canBeUsedByParent; |
| 24 } | 23 } |
| (...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 | 1568 |
| 1570 void defaultPaint(PaintingCanvas canvas, Offset offset) { | 1569 void defaultPaint(PaintingCanvas canvas, Offset offset) { |
| 1571 RenderBox child = firstChild; | 1570 RenderBox child = firstChild; |
| 1572 while (child != null) { | 1571 while (child != null) { |
| 1573 assert(child.parentData is ParentDataType); | 1572 assert(child.parentData is ParentDataType); |
| 1574 canvas.paintChild(child, child.parentData.position + offset); | 1573 canvas.paintChild(child, child.parentData.position + offset); |
| 1575 child = child.parentData.nextSibling; | 1574 child = child.parentData.nextSibling; |
| 1576 } | 1575 } |
| 1577 } | 1576 } |
| 1578 } | 1577 } |
| OLD | NEW |