| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 super.removeChild(node); | 345 super.removeChild(node); |
| 346 } | 346 } |
| 347 | 347 |
| 348 void _remove() { | 348 void _remove() { |
| 349 if (child != null) | 349 if (child != null) |
| 350 removeChild(child); | 350 removeChild(child); |
| 351 super._remove(); | 351 super._remove(); |
| 352 } | 352 } |
| 353 } | 353 } |
| 354 | 354 |
| 355 class Clip extends OneChildRenderObjectWrapper { |
| 356 RenderClip root; |
| 357 |
| 358 Clip({ UINode child, Object key }) |
| 359 : super(child: child, key: key); |
| 360 |
| 361 RenderClip createNode() => new RenderClip(); |
| 362 } |
| 363 |
| 355 class Padding extends OneChildRenderObjectWrapper { | 364 class Padding extends OneChildRenderObjectWrapper { |
| 356 RenderPadding root; | 365 RenderPadding root; |
| 357 final EdgeDims padding; | 366 final EdgeDims padding; |
| 358 | 367 |
| 359 Padding({ this.padding, UINode child, Object key }) | 368 Padding({ this.padding, UINode child, Object key }) |
| 360 : super(child: child, key: key); | 369 : super(child: child, key: key); |
| 361 | 370 |
| 362 RenderPadding createNode() => new RenderPadding(padding: padding); | 371 RenderPadding createNode() => new RenderPadding(padding: padding); |
| 363 | 372 |
| 364 void syncRenderObject(Padding old) { | 373 void syncRenderObject(Padding old) { |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 assert(root.parent is RenderView); | 963 assert(root.parent is RenderView); |
| 955 } | 964 } |
| 956 } | 965 } |
| 957 | 966 |
| 958 class Text extends Component { | 967 class Text extends Component { |
| 959 Text(this.data) : super(key: '*text*'); | 968 Text(this.data) : super(key: '*text*'); |
| 960 final String data; | 969 final String data; |
| 961 bool get interchangeable => true; | 970 bool get interchangeable => true; |
| 962 UINode build() => new Paragraph(text: data); | 971 UINode build() => new Paragraph(text: data); |
| 963 } | 972 } |
| OLD | NEW |