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 import 'dart:math' as math; | 5 import 'dart:math' as math; |
6 import 'dart:sky' as sky; | |
Hixie
2015/06/18 00:07:10
If we don't subclass Canvas to have a paintChild()
iansf
2015/06/20 00:02:38
Acknowledged.
| |
6 | 7 |
7 import 'box.dart'; | 8 import 'box.dart'; |
8 import 'object.dart'; | 9 import 'object.dart'; |
9 | 10 |
10 class StackParentData extends BoxParentData with ContainerParentDataMixin<Render Box> { | 11 class StackParentData extends BoxParentData with ContainerParentDataMixin<Render Box> { |
11 double top; | 12 double top; |
12 double right; | 13 double right; |
13 double bottom; | 14 double bottom; |
14 double left; | 15 double left; |
15 | 16 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 } | 187 } |
187 | 188 |
188 child = parentData.nextSibling; | 189 child = parentData.nextSibling; |
189 } | 190 } |
190 } | 191 } |
191 | 192 |
192 void hitTestChildren(HitTestResult result, { Point position }) { | 193 void hitTestChildren(HitTestResult result, { Point position }) { |
193 defaultHitTestChildren(result, position: position); | 194 defaultHitTestChildren(result, position: position); |
194 } | 195 } |
195 | 196 |
196 void paint(RenderObjectDisplayList canvas) { | 197 void paint(sky.Canvas canvas) { |
197 defaultPaint(canvas); | 198 defaultPaint(canvas); |
198 } | 199 } |
199 } | 200 } |
OLD | NEW |