| 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; | 6 import 'dart:sky' as sky; |
| 7 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path; | 7 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path; |
| 8 |
| 8 import 'shadows.dart'; | 9 import 'shadows.dart'; |
| 9 | 10 |
| 10 class BorderSide { | 11 class BorderSide { |
| 11 const BorderSide({ | 12 const BorderSide({ |
| 12 this.color: const Color(0xFF000000), | 13 this.color: const Color(0xFF000000), |
| 13 this.width: 1.0 | 14 this.width: 1.0 |
| 14 }); | 15 }); |
| 15 final Color color; | 16 final Color color; |
| 16 final double width; | 17 final double width; |
| 17 | 18 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 path = new Path(); | 263 path = new Path(); |
| 263 path.moveTo(rect.left, rect.bottom); | 264 path.moveTo(rect.left, rect.bottom); |
| 264 path.lineTo(rect.left + _decoration.border.left.width, rect.bottom - _deco
ration.border.bottom.width); | 265 path.lineTo(rect.left + _decoration.border.left.width, rect.bottom - _deco
ration.border.bottom.width); |
| 265 path.lineTo(rect.left + _decoration.border.left.width, rect.top + _decorat
ion.border.top.width); | 266 path.lineTo(rect.left + _decoration.border.left.width, rect.top + _decorat
ion.border.top.width); |
| 266 path.lineTo(rect.left, rect.top); | 267 path.lineTo(rect.left, rect.top); |
| 267 path.close(); | 268 path.close(); |
| 268 canvas.drawPath(path, paint); | 269 canvas.drawPath(path, paint); |
| 269 } | 270 } |
| 270 } | 271 } |
| 271 } | 272 } |
| OLD | NEW |