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

Side by Side Diff: sky/sdk/lib/framework/rendering/stack.dart

Issue 1165013003: Rename RenderNode to RenderObject. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/framework/rendering/paragraph.dart ('k') | sky/tests/raw/box_layout.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 import 'box.dart'; 6 import 'box.dart';
7 import 'node.dart'; 7 import 'object.dart';
8 8
9 class StackParentData extends BoxParentData with ContainerParentDataMixin<Render Box> { } 9 class StackParentData extends BoxParentData with ContainerParentDataMixin<Render Box> { }
10 10
11 class RenderStack extends RenderBox with ContainerRenderNodeMixin<RenderBox, Sta ckParentData>, 11 class RenderStack extends RenderBox with ContainerRenderObjectMixin<RenderBox, S tackParentData>,
12 RenderBoxContainerDefaultsMixin<RenderB ox, StackParentData> { 12 RenderBoxContainerDefaultsMixin<RenderB ox, StackParentData> {
13 RenderStack({ 13 RenderStack({
14 List<RenderBox> children 14 List<RenderBox> children
15 }) { 15 }) {
16 if (children != null) 16 if (children != null)
17 children.forEach((child) { add(child); }); 17 children.forEach((child) { add(child); });
18 } 18 }
19 19
20 void setParentData(RenderBox child) { 20 void setParentData(RenderBox child) {
21 if (child.parentData is! StackParentData) 21 if (child.parentData is! StackParentData)
(...skipping 17 matching lines...) Expand all
39 assert(child.parentData is StackParentData); 39 assert(child.parentData is StackParentData);
40 child.parentData.position = origin; 40 child.parentData.position = origin;
41 child = child.parentData.nextSibling; 41 child = child.parentData.nextSibling;
42 } 42 }
43 } 43 }
44 44
45 void hitTestChildren(HitTestResult result, { sky.Point position }) { 45 void hitTestChildren(HitTestResult result, { sky.Point position }) {
46 defaultHitTestChildren(result, position: position); 46 defaultHitTestChildren(result, position: position);
47 } 47 }
48 48
49 void paint(RenderNodeDisplayList canvas) { 49 void paint(RenderObjectDisplayList canvas) {
50 defaultPaint(canvas); 50 defaultPaint(canvas);
51 } 51 }
52 } 52 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/rendering/paragraph.dart ('k') | sky/tests/raw/box_layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698