| 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 'app.dart'; | 7 import 'app.dart'; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:mirrors'; | 10 import 'dart:mirrors'; |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 : super(child: child, key: key); | 430 : super(child: child, key: key); |
| 431 | 431 |
| 432 RenderConstrainedBox createNode() => new RenderConstrainedBox(additionalConstr
aints: constraints); | 432 RenderConstrainedBox createNode() => new RenderConstrainedBox(additionalConstr
aints: constraints); |
| 433 | 433 |
| 434 void syncRenderObject(ConstrainedBox old) { | 434 void syncRenderObject(ConstrainedBox old) { |
| 435 super.syncRenderObject(old); | 435 super.syncRenderObject(old); |
| 436 root.additionalConstraints = constraints; | 436 root.additionalConstraints = constraints; |
| 437 } | 437 } |
| 438 } | 438 } |
| 439 | 439 |
| 440 class ShrinkWrapWidth extends OneChildRenderObjectWrapper { |
| 441 RenderShrinkWrapWidth root; |
| 442 |
| 443 ShrinkWrapWidth({ UINode child, Object key }) : super(child: child, key: key); |
| 444 |
| 445 RenderShrinkWrapWidth createNode() => new RenderShrinkWrapWidth(); |
| 446 } |
| 447 |
| 440 class Transform extends OneChildRenderObjectWrapper { | 448 class Transform extends OneChildRenderObjectWrapper { |
| 441 RenderTransform root; | 449 RenderTransform root; |
| 442 final Matrix4 transform; | 450 final Matrix4 transform; |
| 443 | 451 |
| 444 Transform({ this.transform, UINode child, Object key }) | 452 Transform({ this.transform, UINode child, Object key }) |
| 445 : super(child: child, key: key); | 453 : super(child: child, key: key); |
| 446 | 454 |
| 447 RenderTransform createNode() => new RenderTransform(transform: transform); | 455 RenderTransform createNode() => new RenderTransform(transform: transform); |
| 448 | 456 |
| 449 void syncRenderObject(Transform old) { | 457 void syncRenderObject(Transform old) { |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1043 assert(root.parent is RenderView); | 1051 assert(root.parent is RenderView); |
| 1044 } | 1052 } |
| 1045 } | 1053 } |
| 1046 | 1054 |
| 1047 class Text extends Component { | 1055 class Text extends Component { |
| 1048 Text(this.data) : super(key: '*text*'); | 1056 Text(this.data) : super(key: '*text*'); |
| 1049 final String data; | 1057 final String data; |
| 1050 bool get interchangeable => true; | 1058 bool get interchangeable => true; |
| 1051 UINode build() => new Paragraph(text: data); | 1059 UINode build() => new Paragraph(text: data); |
| 1052 } | 1060 } |
| OLD | NEW |