| 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 'app.dart'; | 12 import 'app.dart'; |
| 13 import 'rendering/render_block.dart'; | 13 import 'rendering/block.dart'; |
| 14 import 'rendering/render_box.dart'; | 14 import 'rendering/box.dart'; |
| 15 import 'rendering/render_flex.dart'; | 15 import 'rendering/flex.dart'; |
| 16 import 'rendering/render_node.dart'; | 16 import 'rendering/node.dart'; |
| 17 import 'rendering/render_paragraph.dart'; | 17 import 'rendering/paragraph.dart'; |
| 18 | 18 |
| 19 // final sky.Tracing _tracing = sky.window.tracing; | 19 // final sky.Tracing _tracing = sky.window.tracing; |
| 20 | 20 |
| 21 final bool _shouldLogRenderDuration = false; | 21 final bool _shouldLogRenderDuration = false; |
| 22 final bool _shouldTrace = false; | 22 final bool _shouldTrace = false; |
| 23 | 23 |
| 24 enum _SyncOperation { IDENTICAL, INSERTION, STATEFUL, STATELESS, REMOVAL } | 24 enum _SyncOperation { IDENTICAL, INSERTION, STATEFUL, STATELESS, REMOVAL } |
| 25 | 25 |
| 26 /* | 26 /* |
| 27 * 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 | 853 |
| 854 class Rectangle extends RenderNodeWrapper { | 854 class Rectangle extends RenderNodeWrapper { |
| 855 RenderSolidColor root; | 855 RenderSolidColor root; |
| 856 RenderSolidColor createNode() => | 856 RenderSolidColor createNode() => |
| 857 new RenderSolidColor(color, desiredSize: new sky.Size(40.0, 130.0)); | 857 new RenderSolidColor(color, desiredSize: new sky.Size(40.0, 130.0)); |
| 858 | 858 |
| 859 final int color; | 859 final int color; |
| 860 | 860 |
| 861 Rectangle(this.color, { Object key }) : super(key: key); | 861 Rectangle(this.color, { Object key }) : super(key: key); |
| 862 } | 862 } |
| OLD | NEW |