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/framework/net/image_cache.dart' as image_cache; | |
9 import 'package:vector_math/vector_math.dart'; | 8 import 'package:vector_math/vector_math.dart'; |
10 | 9 |
11 import '../debug/utils.dart'; | 10 import '../framework/debug/utils.dart'; |
| 11 import '../framework/net/image_cache.dart' as image_cache; |
12 import '../painting/box_painter.dart'; | 12 import '../painting/box_painter.dart'; |
13 import 'object.dart'; | 13 import 'object.dart'; |
14 | 14 |
15 export '../painting/box_painter.dart'; | 15 export '../painting/box_painter.dart'; |
16 | 16 |
17 // GENERIC BOX RENDERING | 17 // GENERIC BOX RENDERING |
18 // Anything that has a concept of x, y, width, height is going to derive from th
is | 18 // Anything that has a concept of x, y, width, height is going to derive from th
is |
19 | 19 |
20 // This class should only be used in debug builds | 20 // This class should only be used in debug builds |
21 class _DebugSize extends Size { | 21 class _DebugSize extends Size { |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 | 1078 |
1079 void defaultPaint(RenderObjectDisplayList canvas) { | 1079 void defaultPaint(RenderObjectDisplayList canvas) { |
1080 RenderBox child = firstChild; | 1080 RenderBox child = firstChild; |
1081 while (child != null) { | 1081 while (child != null) { |
1082 assert(child.parentData is ParentDataType); | 1082 assert(child.parentData is ParentDataType); |
1083 canvas.paintChild(child, child.parentData.position); | 1083 canvas.paintChild(child, child.parentData.position); |
1084 child = child.parentData.nextSibling; | 1084 child = child.parentData.nextSibling; |
1085 } | 1085 } |
1086 } | 1086 } |
1087 } | 1087 } |
OLD | NEW |