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

Side by Side Diff: sky/sdk/lib/rendering/object.dart

Issue 1221273002: Fix interactive_flex demo (Closed) Base URL: git@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/example/rendering/interactive_flex.dart ('k') | sky/sdk/lib/rendering/sky_binding.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:math' as math; 5 import 'dart:math' as math;
6 import 'dart:sky' as sky; 6 import 'dart:sky' as sky;
7 import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path; 7 import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path;
8 8
9 import '../base/hit_test.dart'; 9 import '../base/hit_test.dart';
10 import '../base/node.dart'; 10 import '../base/node.dart';
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 _needsLayout = true; 116 _needsLayout = true;
117 assert(_relayoutSubtreeRoot != null); 117 assert(_relayoutSubtreeRoot != null);
118 if (_relayoutSubtreeRoot != this) { 118 if (_relayoutSubtreeRoot != this) {
119 final parent = this.parent; // TODO(ianh): Remove this once the analyzer i s cleverer 119 final parent = this.parent; // TODO(ianh): Remove this once the analyzer i s cleverer
120 assert(parent is RenderObject); 120 assert(parent is RenderObject);
121 parent.markNeedsLayout(); 121 parent.markNeedsLayout();
122 assert(parent == this.parent); // TODO(ianh): Remove this once the analyze r is cleverer 122 assert(parent == this.parent); // TODO(ianh): Remove this once the analyze r is cleverer
123 } else { 123 } else {
124 _nodesNeedingLayout.add(this); 124 _nodesNeedingLayout.add(this);
125 scheduler.ensureVisualUpdate();
125 } 126 }
126 } 127 }
127 void _cleanRelayoutSubtreeRoot() { 128 void _cleanRelayoutSubtreeRoot() {
128 if (_relayoutSubtreeRoot != this) { 129 if (_relayoutSubtreeRoot != this) {
129 _relayoutSubtreeRoot = null; 130 _relayoutSubtreeRoot = null;
130 _needsLayout = true; 131 _needsLayout = true;
131 _cleanRelayoutSubtreeRootChildren(); 132 _cleanRelayoutSubtreeRootChildren();
132 } 133 }
133 } 134 }
134 void _cleanRelayoutSubtreeRootChildren() { } // workaround for lack of inter-c lass mixins in Dart 135 void _cleanRelayoutSubtreeRootChildren() { } // workaround for lack of inter-c lass mixins in Dart
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 int count = 1; 530 int count = 1;
530 ChildType child = _firstChild; 531 ChildType child = _firstChild;
531 while (child != null) { 532 while (child != null) {
532 result += '${prefix}child ${count}: ${child.toString(prefix)}'; 533 result += '${prefix}child ${count}: ${child.toString(prefix)}';
533 count += 1; 534 count += 1;
534 child = child.parentData.nextSibling; 535 child = child.parentData.nextSibling;
535 } 536 }
536 return result; 537 return result;
537 } 538 }
538 } 539 }
OLDNEW
« no previous file with comments | « sky/sdk/example/rendering/interactive_flex.dart ('k') | sky/sdk/lib/rendering/sky_binding.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698