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

Side by Side Diff: sky/sdk/lib/painting/box_painter.dart

Issue 1215023002: Fix theme changing: turns out we were not reparenting stateful surviving nodes when their parents c… (Closed) Base URL: https://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/stocks/lib/main.dart ('k') | sky/sdk/lib/widgets/widget.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;
6 import 'dart:sky' as sky; 5 import 'dart:sky' as sky;
7 import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path; 6 import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path;
8 7
9 import 'shadows.dart'; 8 import 'shadows.dart';
10 9
11 class BorderSide { 10 class BorderSide {
12 const BorderSide({ 11 const BorderSide({
13 this.color: const Color(0xFF000000), 12 this.color: const Color(0xFF000000),
14 this.width: 1.0 13 this.width: 1.0
15 }); 14 });
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 path = new Path(); 261 path = new Path();
263 path.moveTo(rect.left, rect.bottom); 262 path.moveTo(rect.left, rect.bottom);
264 path.lineTo(rect.left + _decoration.border.left.width, rect.bottom - _deco ration.border.bottom.width); 263 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); 264 path.lineTo(rect.left + _decoration.border.left.width, rect.top + _decorat ion.border.top.width);
266 path.lineTo(rect.left, rect.top); 265 path.lineTo(rect.left, rect.top);
267 path.close(); 266 path.close();
268 canvas.drawPath(path, paint); 267 canvas.drawPath(path, paint);
269 } 268 }
270 } 269 }
271 } 270 }
OLDNEW
« no previous file with comments | « sky/sdk/example/stocks/lib/main.dart ('k') | sky/sdk/lib/widgets/widget.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698