Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1073)

Side by Side Diff: sky/sdk/lib/widgets/basic.dart

Issue 1214833004: Split Size into Size and Offset. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/theme/shadows.dart ('k') | sky/sdk/lib/widgets/ink_well.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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:sky' as sky; 5 import 'dart:sky' as sky;
6 6
7 import 'package:vector_math/vector_math.dart'; 7 import 'package:vector_math/vector_math.dart';
8 8
9 import '../painting/text_style.dart'; 9 import '../painting/text_style.dart';
10 import '../rendering/block.dart'; 10 import '../rendering/block.dart';
11 import '../rendering/box.dart'; 11 import '../rendering/box.dart';
12 import '../rendering/flex.dart'; 12 import '../rendering/flex.dart';
13 import '../rendering/object.dart'; 13 import '../rendering/object.dart';
14 import '../rendering/paragraph.dart'; 14 import '../rendering/paragraph.dart';
15 import '../rendering/stack.dart'; 15 import '../rendering/stack.dart';
16 import 'default_text_style.dart'; 16 import 'default_text_style.dart';
17 import 'widget.dart'; 17 import 'widget.dart';
18 18
19 export '../rendering/box.dart' show BoxConstraints, BoxDecoration, Border, Borde rSide, EdgeDims; 19 export '../rendering/box.dart' show BoxConstraints, BoxDecoration, Border, Borde rSide, EdgeDims;
20 export '../rendering/flex.dart' show FlexDirection, FlexJustifyContent, FlexAlig nItems; 20 export '../rendering/flex.dart' show FlexDirection, FlexJustifyContent, FlexAlig nItems;
21 export '../rendering/object.dart' show Point, Size, Rect, Color, Paint, Path; 21 export '../rendering/object.dart' show Point, Offset, Size, Rect, Color, Paint, Path;
22 export 'widget.dart' show Widget, Component, App, runApp, Listener, ParentDataNo de; 22 export 'widget.dart' show Widget, Component, App, runApp, Listener, ParentDataNo de;
23 23
24 24
25 // PAINTING NODES 25 // PAINTING NODES
26 26
27 class Opacity extends OneChildRenderObjectWrapper { 27 class Opacity extends OneChildRenderObjectWrapper {
28 Opacity({ String key, this.opacity, Widget child }) 28 Opacity({ String key, this.opacity, Widget child })
29 : super(key: key, child: child); 29 : super(key: key, child: child);
30 30
31 RenderOpacity get root => super.root; 31 RenderOpacity get root => super.root;
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 } 489 }
490 490
491 void remove() { 491 void remove() {
492 RenderObjectWrapper ancestor = findAncestor(RenderObjectWrapper); 492 RenderObjectWrapper ancestor = findAncestor(RenderObjectWrapper);
493 assert(ancestor is RenderObjectWrapper); 493 assert(ancestor is RenderObjectWrapper);
494 ancestor.detachChildRoot(this); 494 ancestor.detachChildRoot(this);
495 super.remove(); 495 super.remove();
496 } 496 }
497 497
498 } 498 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/theme/shadows.dart ('k') | sky/sdk/lib/widgets/ink_well.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698