| 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 | 6 |
| 7 import 'box.dart'; | 7 import 'package:sky/rendering/box.dart'; |
| 8 import 'object.dart'; | 8 import 'package:sky/rendering/object.dart'; |
| 9 | 9 |
| 10 class BlockParentData extends BoxParentData with ContainerParentDataMixin<Render
Box> { } | 10 class BlockParentData extends BoxParentData with ContainerParentDataMixin<Render
Box> { } |
| 11 | 11 |
| 12 abstract class RenderBlockBase extends RenderBox with ContainerRenderObjectMixin
<RenderBox, BlockParentData>, | 12 abstract class RenderBlockBase extends RenderBox with ContainerRenderObjectMixin
<RenderBox, BlockParentData>, |
| 13 RenderBoxContainerDefaults
Mixin<RenderBox, BlockParentData> { | 13 RenderBoxContainerDefaults
Mixin<RenderBox, BlockParentData> { |
| 14 | 14 |
| 15 // lays out RenderBox children in a vertical stack | 15 // lays out RenderBox children in a vertical stack |
| 16 // uses the maximum width provided by the parent | 16 // uses the maximum width provided by the parent |
| 17 | 17 |
| 18 RenderBlockBase({ | 18 RenderBlockBase({ |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 canvas.clipRect(offset & size); | 207 canvas.clipRect(offset & size); |
| 208 defaultPaint(canvas, offset.translate(0.0, startOffset)); | 208 defaultPaint(canvas, offset.translate(0.0, startOffset)); |
| 209 canvas.restore(); | 209 canvas.restore(); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void hitTestChildren(HitTestResult result, { Point position }) { | 212 void hitTestChildren(HitTestResult result, { Point position }) { |
| 213 defaultHitTestChildren(result, position: position + new Offset(0.0, -startOf
fset)); | 213 defaultHitTestChildren(result, position: position + new Offset(0.0, -startOf
fset)); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } | 216 } |
| 217 | |
| OLD | NEW |