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 library fn; | 5 library fn; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:mirrors'; | 9 import 'dart:mirrors'; |
10 import 'dart:sky' as sky; | 10 import 'dart:sky' as sky; |
11 import 'reflect.dart' as reflect; | 11 import 'reflect.dart' as reflect; |
12 import 'layout2.dart'; | |
13 import 'app.dart'; | 12 import 'app.dart'; |
| 13 import 'rendering/render_block.dart'; |
| 14 import 'rendering/render_box.dart'; |
| 15 import 'rendering/render_flex.dart'; |
| 16 import 'rendering/render_node.dart'; |
| 17 import 'rendering/render_paragraph.dart'; |
14 | 18 |
15 // final sky.Tracing _tracing = sky.window.tracing; | 19 // final sky.Tracing _tracing = sky.window.tracing; |
16 | 20 |
17 final bool _shouldLogRenderDuration = false; | 21 final bool _shouldLogRenderDuration = false; |
18 final bool _shouldTrace = false; | 22 final bool _shouldTrace = false; |
19 | 23 |
20 enum _SyncOperation { IDENTICAL, INSERTION, STATEFUL, STATELESS, REMOVAL } | 24 enum _SyncOperation { IDENTICAL, INSERTION, STATEFUL, STATELESS, REMOVAL } |
21 | 25 |
22 /* | 26 /* |
23 * All Effen nodes derive from UINode. All nodes have a _parent, a _key and | 27 * All Effen nodes derive from UINode. All nodes have a _parent, a _key and |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 | 962 |
959 final int color; | 963 final int color; |
960 | 964 |
961 RenderSolidColor root; | 965 RenderSolidColor root; |
962 RenderSolidColor createNode() => new RenderSolidColor(color, desiredSize: new
sky.Size(40.0, 130.0)); | 966 RenderSolidColor createNode() => new RenderSolidColor(color, desiredSize: new
sky.Size(40.0, 130.0)); |
963 | 967 |
964 static final Rectangle _emptyRectangle = new Rectangle(0); | 968 static final Rectangle _emptyRectangle = new Rectangle(0); |
965 RenderNodeWrapper get emptyNode => _emptyRectangle; | 969 RenderNodeWrapper get emptyNode => _emptyRectangle; |
966 | 970 |
967 } | 971 } |
OLD | NEW |